blob: a8985e1f7432f394ca1aac200ba23e8c416dd1cc [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Masahiro Yamadae1cfdc02018-05-28 18:21:59 +09002
Paolo 'Blaisorblade' Giarrusso85977372005-11-13 16:07:06 -08003menu "Host processor type and features"
4
Al Viro7a78a172007-10-29 04:34:31 +00005source "arch/x86/Kconfig.cpu"
Paolo 'Blaisorblade' Giarrusso85977372005-11-13 16:07:06 -08006
7endmenu
8
Paolo 'Blaisorblade' Giarrussoc45166be32005-05-01 08:58:54 -07009config UML_X86
Jeff Dike54d67ee2007-12-01 12:16:28 -080010 def_bool y
Jan Beulichc49aa5b2011-03-08 09:24:26 +000011 select GENERIC_FIND_FIRST_BIT
Jeff Dike54d67ee2007-12-01 12:16:28 -080012
Paolo 'Blaisorblade' Giarrussoc45166be32005-05-01 08:58:54 -070013config 64BIT
Masahiro Yamada104daea2018-05-28 18:21:40 +090014 bool "64-bit kernel" if "$(SUBARCH)" = "x86"
15 default "$(SUBARCH)" != "i386"
Al Viro41984262008-08-23 17:00:34 -040016
17config X86_32
18 def_bool !64BIT
Yury Norov942fa982018-05-16 11:18:49 +030019 select ARCH_32BIT_OFF_T
Richard Weinbergerbbb35ef2012-09-27 20:10:57 +020020 select ARCH_WANT_IPC_PARSE_VERSION
David Howells786d35d2012-09-28 14:31:03 +093021 select MODULES_USE_ELF_REL
Al Viro1d4b4b22012-10-22 22:34:11 -040022 select CLONE_BACKWARDS
Al Viro15ce1f72012-12-25 16:09:20 -050023 select OLD_SIGSUSPEND3
Al Viro5b3eb3a2012-12-25 19:14:55 -050024 select OLD_SIGACTION
Al Viro41984262008-08-23 17:00:34 -040025
Jan Beulichbfc390612011-03-01 11:14:55 +000026config X86_64
27 def_bool 64BIT
David Howells786d35d2012-09-28 14:31:03 +093028 select MODULES_USE_ELF_RELA
Jan Beulichbfc390612011-03-01 11:14:55 +000029
Ramkumar Ramachandrae40f04d2013-09-27 09:44:46 +053030config ARCH_DEFCONFIG
31 string
32 default "arch/um/configs/i386_defconfig" if X86_32
33 default "arch/um/configs/x86_64_defconfig" if X86_64
34
Linus Torvalds1da177e2005-04-16 15:20:36 -070035config 3_LEVEL_PGTABLES
Kees Cook01b35ab2012-10-02 11:16:48 -070036 bool "Three-level pagetables" if !64BIT
Al Viro41984262008-08-23 17:00:34 -040037 default 64BIT
Linus Torvalds1da177e2005-04-16 15:20:36 -070038 help
39 Three-level pagetables will let UML have more than 4G of physical
40 memory. All the memory that can't be mapped directly will be treated
41 as high memory.
42
Paolo 'Blaisorblade' Giarrussoce2d2ae2006-01-18 17:42:59 -080043 However, this it experimental on 32-bit architectures, so if unsure say
44 N (on x86-64 it's automatically enabled, instead, as it's safe there).
45
Linus Torvalds1da177e2005-04-16 15:20:36 -070046config ARCH_HAS_SC_SIGNALS
Al Viro41984262008-08-23 17:00:34 -040047 def_bool !64BIT
Linus Torvalds1da177e2005-04-16 15:20:36 -070048
49config ARCH_REUSE_HOST_VSYSCALL_AREA
Al Viro41984262008-08-23 17:00:34 -040050 def_bool !64BIT
51
Akinobu Mitaf214ef32006-03-26 01:38:59 -080052config GENERIC_HWEIGHT
Al Viro41984262008-08-23 17:00:34 -040053 def_bool y