aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/um/Kconfig4
-rw-r--r--arch/um/Kconfig.x86 (renamed from arch/um/Kconfig.i386)33
-rw-r--r--arch/um/Kconfig.x86_6439
-rw-r--r--arch/um/Makefile4
4 files changed, 23 insertions, 57 deletions
diff --git a/arch/um/Kconfig b/arch/um/Kconfig
index 393bccfe1785..a0801fda0be4 100644
--- a/arch/um/Kconfig
+++ b/arch/um/Kconfig
@@ -85,6 +85,10 @@ config STATIC_LINK
85 Additionally, this option enables using higher memory spaces (up to 85 Additionally, this option enables using higher memory spaces (up to
86 2.75G) for UML. 86 2.75G) for UML.
87 87
88config SUBARCH
89 string
90 option env="SUBARCH"
91
88source "arch/um/Kconfig.arch" 92source "arch/um/Kconfig.arch"
89source "mm/Kconfig" 93source "mm/Kconfig"
90source "kernel/time/Kconfig" 94source "kernel/time/Kconfig"
diff --git a/arch/um/Kconfig.i386 b/arch/um/Kconfig.x86
index 1f57c113df6d..76200c9f454a 100644
--- a/arch/um/Kconfig.i386
+++ b/arch/um/Kconfig.x86
@@ -5,24 +5,25 @@ source "arch/x86/Kconfig.cpu"
5endmenu 5endmenu
6 6
7config UML_X86 7config UML_X86
8 def_bool y
9
10config 64BIT
8 bool 11 bool
9 default y 12 default SUBARCH = "x86_64"
10 13
11config X86_32 14config X86_32
12 bool 15 def_bool !64BIT
13 default y 16 select HAVE_AOUT
14 select HAVE_AOUT
15 17
16config RWSEM_XCHGADD_ALGORITHM 18config RWSEM_XCHGADD_ALGORITHM
17 def_bool y 19 def_bool X86_XADD
18 20
19config 64BIT 21config RWSEM_GENERIC_SPINLOCK
20 bool 22 def_bool !X86_XADD
21 default n
22 23
23config 3_LEVEL_PGTABLES 24config 3_LEVEL_PGTABLES
24 bool "Three-level pagetables (EXPERIMENTAL)" 25 bool "Three-level pagetables (EXPERIMENTAL)" if !64BIT
25 default n 26 default 64BIT
26 depends on EXPERIMENTAL 27 depends on EXPERIMENTAL
27 help 28 help
28 Three-level pagetables will let UML have more than 4G of physical 29 Three-level pagetables will let UML have more than 4G of physical
@@ -33,13 +34,13 @@ config 3_LEVEL_PGTABLES
33 N (on x86-64 it's automatically enabled, instead, as it's safe there). 34 N (on x86-64 it's automatically enabled, instead, as it's safe there).
34 35
35config ARCH_HAS_SC_SIGNALS 36config ARCH_HAS_SC_SIGNALS
36 bool 37 def_bool !64BIT
37 default y
38 38
39config ARCH_REUSE_HOST_VSYSCALL_AREA 39config ARCH_REUSE_HOST_VSYSCALL_AREA
40 bool 40 def_bool !64BIT
41 default y 41
42config SMP_BROKEN
43 def_bool 64BIT
42 44
43config GENERIC_HWEIGHT 45config GENERIC_HWEIGHT
44 bool 46 def_bool y
45 default y
diff --git a/arch/um/Kconfig.x86_64 b/arch/um/Kconfig.x86_64
deleted file mode 100644
index 40b3407cfe16..000000000000
--- a/arch/um/Kconfig.x86_64
+++ /dev/null
@@ -1,39 +0,0 @@
1
2menu "Host processor type and features"
3
4source "arch/x86/Kconfig.cpu"
5
6endmenu
7
8config UML_X86
9 bool
10 default y
11
12config 64BIT
13 bool
14 default y
15
16#XXX: this is so in the underlying arch, but it's wrong!!!
17config RWSEM_GENERIC_SPINLOCK
18 bool
19 default y
20
21config 3_LEVEL_PGTABLES
22 bool
23 default y
24
25config ARCH_HAS_SC_SIGNALS
26 bool
27 default n
28
29config ARCH_REUSE_HOST_VSYSCALL_AREA
30 bool
31 default n
32
33config SMP_BROKEN
34 bool
35 default y
36
37config GENERIC_HWEIGHT
38 bool
39 default y
diff --git a/arch/um/Makefile b/arch/um/Makefile
index 2e042b0e3b8a..bc070cef3ceb 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -96,9 +96,9 @@ define archhelp
96endef 96endef
97 97
98ifneq ($(KBUILD_SRC),) 98ifneq ($(KBUILD_SRC),)
99$(shell mkdir -p $(ARCH_DIR) && ln -fsn $(srctree)/$(ARCH_DIR)/Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch) 99$(shell mkdir -p $(ARCH_DIR) && ln -fsn $(srctree)/$(ARCH_DIR)/Kconfig.$(HEADER_ARCH) $(ARCH_DIR)/Kconfig.arch)
100else 100else
101$(shell ln -fsn Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch) 101$(shell ln -fsn Kconfig.$(HEADER_ARCH) $(ARCH_DIR)/Kconfig.arch)
102endif 102endif
103 103
104archprepare: $(ARCH_SYMLINKS) $(ARCH_DIR)/include/shared/user_constants.h 104archprepare: $(ARCH_SYMLINKS) $(ARCH_DIR)/include/shared/user_constants.h