xref: /linux/arch/x86/um/Kconfig (revision 797d3688f98667006e12dbc657ca6ac29ea4a71b)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2e1cfdc0eSMasahiro Yamada
35c48b108SAl Viromenu "Host processor type and features"
45c48b108SAl Viro
55c48b108SAl Virosource "arch/x86/Kconfig.cpu"
65c48b108SAl Viro
75c48b108SAl Viroendmenu
85c48b108SAl Viro
95c48b108SAl Viroconfig UML_X86
105c48b108SAl Viro	def_bool y
11b62a8486SCatalin Marinas	select ARCH_BINFMT_ELF_EXTRA_PHDRS if X86_32
126692531dSAl Viro	select DCACHE_WORD_ACCESS
13*797d3688SBenjamin Berg	select HAVE_EFFICIENT_UNALIGNED_ACCESS
145c48b108SAl Viro
155c48b108SAl Viroconfig 64BIT
16104daea1SMasahiro Yamada	bool "64-bit kernel" if "$(SUBARCH)" = "x86"
17104daea1SMasahiro Yamada	default "$(SUBARCH)" != "i386"
185c48b108SAl Viro
195c48b108SAl Viroconfig X86_32
205c48b108SAl Viro	def_bool !64BIT
21942fa985SYury Norov	select ARCH_32BIT_OFF_T
22bbb35efcSRichard Weinberger	select ARCH_WANT_IPC_PARSE_VERSION
23786d35d4SDavid Howells	select MODULES_USE_ELF_REL
241d4b4b29SAl Viro	select CLONE_BACKWARDS
2515ce1f71SAl Viro	select OLD_SIGSUSPEND3
265b3eb3adSAl Viro	select OLD_SIGACTION
275c48b108SAl Viro
285c48b108SAl Viroconfig X86_64
295c48b108SAl Viro	def_bool 64BIT
30786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
315c48b108SAl Viro
325c48b108SAl Viroconfig 3_LEVEL_PGTABLES
3301b35ab7SKees Cook	bool "Three-level pagetables" if !64BIT
345c48b108SAl Viro	default 64BIT
355c48b108SAl Viro	help
365c48b108SAl Viro	  Three-level pagetables will let UML have more than 4G of physical
375c48b108SAl Viro	  memory.  All the memory that can't be mapped directly will be treated
385c48b108SAl Viro	  as high memory.
395c48b108SAl Viro
405c48b108SAl Viro	  However, this it experimental on 32-bit architectures, so if unsure say
415c48b108SAl Viro	  N (on x86-64 it's automatically enabled, instead, as it's safe there).
425c48b108SAl Viro
435c48b108SAl Viroconfig ARCH_HAS_SC_SIGNALS
445c48b108SAl Viro	def_bool !64BIT
455c48b108SAl Viro
465c48b108SAl Viroconfig ARCH_REUSE_HOST_VSYSCALL_AREA
475c48b108SAl Viro	def_bool !64BIT
485c48b108SAl Viro
495c48b108SAl Viroconfig GENERIC_HWEIGHT
505c48b108SAl Viro	def_bool y
51