xref: /linux/arch/x86/um/Kconfig (revision e1cfdc0e72fc9ad7c04ad6329acb92876e062849)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
2104daea1SMasahiro Yamadamainmenu "User Mode Linux/$(SUBARCH) $(KERNELVERSION) Kernel Configuration"
35c48b108SAl Viro
421c54b77SMasahiro Yamadacomment "Compiler: $(CC_VERSION_TEXT)"
521c54b77SMasahiro Yamada
6*e1cfdc0eSMasahiro Yamadasource "scripts/Kconfig.include"
7*e1cfdc0eSMasahiro Yamada
85c48b108SAl Virosource "arch/um/Kconfig.common"
95c48b108SAl Viro
105c48b108SAl Viromenu "UML-specific options"
115c48b108SAl Viro
125c48b108SAl Viromenu "Host processor type and features"
135c48b108SAl Viro
145c48b108SAl Virosource "arch/x86/Kconfig.cpu"
155c48b108SAl Viro
165c48b108SAl Viroendmenu
175c48b108SAl Viro
185c48b108SAl Viroconfig UML_X86
195c48b108SAl Viro	def_bool y
205c48b108SAl Viro	select GENERIC_FIND_FIRST_BIT
215c48b108SAl Viro
225c48b108SAl Viroconfig 64BIT
23104daea1SMasahiro Yamada	bool "64-bit kernel" if "$(SUBARCH)" = "x86"
24104daea1SMasahiro Yamada	default "$(SUBARCH)" != "i386"
255c48b108SAl Viro
265c48b108SAl Viroconfig X86_32
275c48b108SAl Viro	def_bool !64BIT
285c48b108SAl Viro	select HAVE_AOUT
29bbb35efcSRichard Weinberger	select ARCH_WANT_IPC_PARSE_VERSION
30786d35d4SDavid Howells	select MODULES_USE_ELF_REL
311d4b4b29SAl Viro	select CLONE_BACKWARDS
3215ce1f71SAl Viro	select OLD_SIGSUSPEND3
335b3eb3adSAl Viro	select OLD_SIGACTION
345c48b108SAl Viro
355c48b108SAl Viroconfig X86_64
365c48b108SAl Viro	def_bool 64BIT
37786d35d4SDavid Howells	select MODULES_USE_ELF_RELA
385c48b108SAl Viro
39e40f04d0SRamkumar Ramachandraconfig ARCH_DEFCONFIG
40e40f04d0SRamkumar Ramachandra	string
41e40f04d0SRamkumar Ramachandra	default "arch/um/configs/i386_defconfig" if X86_32
42e40f04d0SRamkumar Ramachandra	default "arch/um/configs/x86_64_defconfig" if X86_64
43e40f04d0SRamkumar Ramachandra
445c48b108SAl Viroconfig RWSEM_XCHGADD_ALGORITHM
457ac468b1SH. Peter Anvin	def_bool 64BIT
465c48b108SAl Viro
475c48b108SAl Viroconfig RWSEM_GENERIC_SPINLOCK
485c48b108SAl Viro	def_bool !RWSEM_XCHGADD_ALGORITHM
495c48b108SAl Viro
505c48b108SAl Viroconfig 3_LEVEL_PGTABLES
5101b35ab7SKees Cook	bool "Three-level pagetables" if !64BIT
525c48b108SAl Viro	default 64BIT
535c48b108SAl Viro	help
545c48b108SAl Viro	Three-level pagetables will let UML have more than 4G of physical
555c48b108SAl Viro	memory.  All the memory that can't be mapped directly will be treated
565c48b108SAl Viro	as high memory.
575c48b108SAl Viro
585c48b108SAl Viro	However, this it experimental on 32-bit architectures, so if unsure say
595c48b108SAl Viro	N (on x86-64 it's automatically enabled, instead, as it's safe there).
605c48b108SAl Viro
615c48b108SAl Viroconfig ARCH_HAS_SC_SIGNALS
625c48b108SAl Viro	def_bool !64BIT
635c48b108SAl Viro
645c48b108SAl Viroconfig ARCH_REUSE_HOST_VSYSCALL_AREA
655c48b108SAl Viro	def_bool !64BIT
665c48b108SAl Viro
675c48b108SAl Viroconfig GENERIC_HWEIGHT
685c48b108SAl Viro	def_bool y
695c48b108SAl Viro
705c48b108SAl Virosource "arch/um/Kconfig.um"
715c48b108SAl Viro
725c48b108SAl Viroendmenu
735c48b108SAl Viro
745c48b108SAl Virosource "arch/um/Kconfig.rest"
75