18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_cimenu "Host processor type and features"
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_cisource "arch/x86/Kconfig.cpu"
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciendmenu
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ciconfig UML_X86
108c2ecf20Sopenharmony_ci	def_bool y
118c2ecf20Sopenharmony_ci	select GENERIC_FIND_FIRST_BIT
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciconfig 64BIT
148c2ecf20Sopenharmony_ci	bool "64-bit kernel" if "$(SUBARCH)" = "x86"
158c2ecf20Sopenharmony_ci	default "$(SUBARCH)" != "i386"
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ciconfig X86_32
188c2ecf20Sopenharmony_ci	def_bool !64BIT
198c2ecf20Sopenharmony_ci	select ARCH_32BIT_OFF_T
208c2ecf20Sopenharmony_ci	select ARCH_WANT_IPC_PARSE_VERSION
218c2ecf20Sopenharmony_ci	select MODULES_USE_ELF_REL
228c2ecf20Sopenharmony_ci	select CLONE_BACKWARDS
238c2ecf20Sopenharmony_ci	select OLD_SIGSUSPEND3
248c2ecf20Sopenharmony_ci	select OLD_SIGACTION
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciconfig X86_64
278c2ecf20Sopenharmony_ci	def_bool 64BIT
288c2ecf20Sopenharmony_ci	select MODULES_USE_ELF_RELA
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ciconfig 3_LEVEL_PGTABLES
318c2ecf20Sopenharmony_ci	bool "Three-level pagetables" if !64BIT
328c2ecf20Sopenharmony_ci	default 64BIT
338c2ecf20Sopenharmony_ci	help
348c2ecf20Sopenharmony_ci	Three-level pagetables will let UML have more than 4G of physical
358c2ecf20Sopenharmony_ci	memory.  All the memory that can't be mapped directly will be treated
368c2ecf20Sopenharmony_ci	as high memory.
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_ci	However, this it experimental on 32-bit architectures, so if unsure say
398c2ecf20Sopenharmony_ci	N (on x86-64 it's automatically enabled, instead, as it's safe there).
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ciconfig ARCH_HAS_SC_SIGNALS
428c2ecf20Sopenharmony_ci	def_bool !64BIT
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ciconfig ARCH_REUSE_HOST_VSYSCALL_AREA
458c2ecf20Sopenharmony_ci	def_bool !64BIT
468c2ecf20Sopenharmony_ci
478c2ecf20Sopenharmony_ciconfig GENERIC_HWEIGHT
488c2ecf20Sopenharmony_ci	def_bool y
49