diff options
-rw-r--r-- | arch/um/Kconfig | 4 | ||||
-rw-r--r-- | arch/um/Kconfig.x86 (renamed from arch/um/Kconfig.i386) | 33 | ||||
-rw-r--r-- | arch/um/Kconfig.x86_64 | 39 | ||||
-rw-r--r-- | arch/um/Makefile | 4 |
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 | ||
88 | config SUBARCH | ||
89 | string | ||
90 | option env="SUBARCH" | ||
91 | |||
88 | source "arch/um/Kconfig.arch" | 92 | source "arch/um/Kconfig.arch" |
89 | source "mm/Kconfig" | 93 | source "mm/Kconfig" |
90 | source "kernel/time/Kconfig" | 94 | source "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" | |||
5 | endmenu | 5 | endmenu |
6 | 6 | ||
7 | config UML_X86 | 7 | config UML_X86 |
8 | def_bool y | ||
9 | |||
10 | config 64BIT | ||
8 | bool | 11 | bool |
9 | default y | 12 | default SUBARCH = "x86_64" |
10 | 13 | ||
11 | config X86_32 | 14 | config X86_32 |
12 | bool | 15 | def_bool !64BIT |
13 | default y | 16 | select HAVE_AOUT |
14 | select HAVE_AOUT | ||
15 | 17 | ||
16 | config RWSEM_XCHGADD_ALGORITHM | 18 | config RWSEM_XCHGADD_ALGORITHM |
17 | def_bool y | 19 | def_bool X86_XADD |
18 | 20 | ||
19 | config 64BIT | 21 | config RWSEM_GENERIC_SPINLOCK |
20 | bool | 22 | def_bool !X86_XADD |
21 | default n | ||
22 | 23 | ||
23 | config 3_LEVEL_PGTABLES | 24 | config 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 | ||
35 | config ARCH_HAS_SC_SIGNALS | 36 | config ARCH_HAS_SC_SIGNALS |
36 | bool | 37 | def_bool !64BIT |
37 | default y | ||
38 | 38 | ||
39 | config ARCH_REUSE_HOST_VSYSCALL_AREA | 39 | config ARCH_REUSE_HOST_VSYSCALL_AREA |
40 | bool | 40 | def_bool !64BIT |
41 | default y | 41 | |
42 | config SMP_BROKEN | ||
43 | def_bool 64BIT | ||
42 | 44 | ||
43 | config GENERIC_HWEIGHT | 45 | config 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 | |||
2 | menu "Host processor type and features" | ||
3 | |||
4 | source "arch/x86/Kconfig.cpu" | ||
5 | |||
6 | endmenu | ||
7 | |||
8 | config UML_X86 | ||
9 | bool | ||
10 | default y | ||
11 | |||
12 | config 64BIT | ||
13 | bool | ||
14 | default y | ||
15 | |||
16 | #XXX: this is so in the underlying arch, but it's wrong!!! | ||
17 | config RWSEM_GENERIC_SPINLOCK | ||
18 | bool | ||
19 | default y | ||
20 | |||
21 | config 3_LEVEL_PGTABLES | ||
22 | bool | ||
23 | default y | ||
24 | |||
25 | config ARCH_HAS_SC_SIGNALS | ||
26 | bool | ||
27 | default n | ||
28 | |||
29 | config ARCH_REUSE_HOST_VSYSCALL_AREA | ||
30 | bool | ||
31 | default n | ||
32 | |||
33 | config SMP_BROKEN | ||
34 | bool | ||
35 | default y | ||
36 | |||
37 | config 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 | |||
96 | endef | 96 | endef |
97 | 97 | ||
98 | ifneq ($(KBUILD_SRC),) | 98 | ifneq ($(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) |
100 | else | 100 | else |
101 | $(shell ln -fsn Kconfig.$(SUBARCH) $(ARCH_DIR)/Kconfig.arch) | 101 | $(shell ln -fsn Kconfig.$(HEADER_ARCH) $(ARCH_DIR)/Kconfig.arch) |
102 | endif | 102 | endif |
103 | 103 | ||
104 | archprepare: $(ARCH_SYMLINKS) $(ARCH_DIR)/include/shared/user_constants.h | 104 | archprepare: $(ARCH_SYMLINKS) $(ARCH_DIR)/include/shared/user_constants.h |