xref: /linux/arch/x86/um/Kconfig (revision 80d7da1cac62f28b3df4880e8143b39cabb4b59a)
1# SPDX-License-Identifier: GPL-2.0
2
3menu "Host processor type and features"
4
5source "arch/x86/Kconfig.cpu"
6
7endmenu
8
9config UML_X86
10	def_bool y
11	select GENERIC_FIND_FIRST_BIT
12
13config 64BIT
14	bool "64-bit kernel" if "$(SUBARCH)" = "x86"
15	default "$(SUBARCH)" != "i386"
16
17config X86_32
18	def_bool !64BIT
19	select HAVE_AOUT
20	select ARCH_32BIT_OFF_T
21	select ARCH_WANT_IPC_PARSE_VERSION
22	select MODULES_USE_ELF_REL
23	select CLONE_BACKWARDS
24	select OLD_SIGSUSPEND3
25	select OLD_SIGACTION
26
27config X86_64
28	def_bool 64BIT
29	select MODULES_USE_ELF_RELA
30
31config ARCH_DEFCONFIG
32	string
33	default "arch/um/configs/i386_defconfig" if X86_32
34	default "arch/um/configs/x86_64_defconfig" if X86_64
35
36config RWSEM_XCHGADD_ALGORITHM
37	def_bool 64BIT
38
39config RWSEM_GENERIC_SPINLOCK
40	def_bool !RWSEM_XCHGADD_ALGORITHM
41
42config 3_LEVEL_PGTABLES
43	bool "Three-level pagetables" if !64BIT
44	default 64BIT
45	help
46	Three-level pagetables will let UML have more than 4G of physical
47	memory.  All the memory that can't be mapped directly will be treated
48	as high memory.
49
50	However, this it experimental on 32-bit architectures, so if unsure say
51	N (on x86-64 it's automatically enabled, instead, as it's safe there).
52
53config ARCH_HAS_SC_SIGNALS
54	def_bool !64BIT
55
56config ARCH_REUSE_HOST_VSYSCALL_AREA
57	def_bool !64BIT
58
59config GENERIC_HWEIGHT
60	def_bool y
61