]> nv-tegra.nvidia Code Review - linux-3.10.git/blobdiff - arch/um/Makefile-i386
[PATCH] uml: reuse i386 cpu-specific tuning
[linux-3.10.git] / arch / um / Makefile-i386
index 2ee8a2858117357f3ae2fdc1412ff42fe633cedc..4a0b375101eb9edcc75a7c4b3af2b6fe7ccd893e 100644 (file)
@@ -32,3 +32,13 @@ CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH)
 ifneq ($(CONFIG_GPROF),y)
 ARCH_CFLAGS += -DUM_FASTCALL
 endif
+
+# First of all, tune CFLAGS for the specific CPU. This actually sets cflags-y.
+include $(srctree)/arch/i386/Makefile.cpu
+
+# prevent gcc from keeping the stack 16 byte aligned. Taken from i386.
+cflags-y += $(call cc-option,-mpreferred-stack-boundary=2)
+
+CFLAGS += $(cflags-y)
+USER_CFLAGS += $(cflags-y)
+