aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/Kconfig6
-rw-r--r--arch/um/Makefile-i38610
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/um/Kconfig b/arch/um/Kconfig
index 684e1f8b2755..ceaf6e4d2855 100644
--- a/arch/um/Kconfig
+++ b/arch/um/Kconfig
@@ -40,6 +40,12 @@ config IRQ_RELEASE_METHOD
40 bool 40 bool
41 default y 41 default y
42 42
43menu "Host processor type and features"
44
45source "arch/i386/Kconfig.cpu"
46
47endmenu
48
43menu "UML-specific options" 49menu "UML-specific options"
44 50
45config MODE_TT 51config MODE_TT
diff --git a/arch/um/Makefile-i386 b/arch/um/Makefile-i386
index 2ee8a2858117..4a0b375101eb 100644
--- a/arch/um/Makefile-i386
+++ b/arch/um/Makefile-i386
@@ -32,3 +32,13 @@ CFLAGS += -U__$(SUBARCH)__ -U$(SUBARCH)
32ifneq ($(CONFIG_GPROF),y) 32ifneq ($(CONFIG_GPROF),y)
33ARCH_CFLAGS += -DUM_FASTCALL 33ARCH_CFLAGS += -DUM_FASTCALL
34endif 34endif
35
36# First of all, tune CFLAGS for the specific CPU. This actually sets cflags-y.
37include $(srctree)/arch/i386/Makefile.cpu
38
39# prevent gcc from keeping the stack 16 byte aligned. Taken from i386.
40cflags-y += $(call cc-option,-mpreferred-stack-boundary=2)
41
42CFLAGS += $(cflags-y)
43USER_CFLAGS += $(cflags-y)
44