Kconfig 1.5 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
2
mainmenu "User Mode Linux/$(SUBARCH) $(KERNELVERSION) Kernel Configuration"
3

A
Al Viro 已提交
4 5 6 7
source "arch/um/Kconfig.common"

menu "UML-specific options"

8 9
menu "Host processor type and features"

A
Al Viro 已提交
10
source "arch/x86/Kconfig.cpu"
11 12 13

endmenu

14
config UML_X86
15
	def_bool y
16
	select GENERIC_FIND_FIRST_BIT
17 18

config 64BIT
19 20
	bool "64-bit kernel" if "$(SUBARCH)" = "x86"
	default "$(SUBARCH)" != "i386"
21

J
Jeff Dike 已提交
22
config X86_32
23 24
	def_bool !64BIT
	select HAVE_AOUT
R
Richard Weinberger 已提交
25
	select ARCH_WANT_IPC_PARSE_VERSION
26
	select MODULES_USE_ELF_REL
27
	select CLONE_BACKWARDS
28
	select OLD_SIGSUSPEND3
A
Al Viro 已提交
29
	select OLD_SIGACTION
J
Jeff Dike 已提交
30

31 32
config X86_64
	def_bool 64BIT
33
	select MODULES_USE_ELF_RELA
34

35 36 37 38 39
config ARCH_DEFCONFIG
	string
	default "arch/um/configs/i386_defconfig" if X86_32
	default "arch/um/configs/x86_64_defconfig" if X86_64

J
Jeff Dike 已提交
40
config RWSEM_XCHGADD_ALGORITHM
41
	def_bool 64BIT
J
Jeff Dike 已提交
42

43
config RWSEM_GENERIC_SPINLOCK
44
	def_bool !RWSEM_XCHGADD_ALGORITHM
L
Linus Torvalds 已提交
45 46

config 3_LEVEL_PGTABLES
47
	bool "Three-level pagetables" if !64BIT
48
	default 64BIT
L
Linus Torvalds 已提交
49 50 51 52 53
	help
	Three-level pagetables will let UML have more than 4G of physical
	memory.  All the memory that can't be mapped directly will be treated
	as high memory.

54 55 56
	However, this it experimental on 32-bit architectures, so if unsure say
	N (on x86-64 it's automatically enabled, instead, as it's safe there).

L
Linus Torvalds 已提交
57
config ARCH_HAS_SC_SIGNALS
58
	def_bool !64BIT
L
Linus Torvalds 已提交
59 60

config ARCH_REUSE_HOST_VSYSCALL_AREA
61 62
	def_bool !64BIT

63
config GENERIC_HWEIGHT
64
	def_bool y
A
Al Viro 已提交
65 66 67 68 69 70

source "arch/um/Kconfig.um"

endmenu

source "arch/um/Kconfig.rest"