xtensa: move two kconfigs out of CPU_HAS_MMU block

Both CONFIG_XTENSA_SYSCALL_USE_HELPER and
CONFIG_XTENSA_INSECURE_USERSPACE are also applicable to MPU.
So move them out of the CPU_HAS_MMU block.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2024-01-29 12:14:15 -08:00 committed by Anas Nashif
commit da584af9aa

View file

@ -212,10 +212,12 @@ config PRIVILEGED_STACK_SIZE
endif # XTENSA_MMU
endif # CPU_HAS_MMU
config XTENSA_SYSCALL_USE_HELPER
bool "Use userspace syscall helper"
default y if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "xt-clang"
depends on USERSPACE
depends on XTENSA_MMU && USERSPACE
help
Use syscall helpers for passing more then 3 arguments.
This is a workaround for toolchains where they have
@ -223,9 +225,7 @@ config XTENSA_SYSCALL_USE_HELPER
config XTENSA_INSECURE_USERSPACE
bool
default y if USERSPACE
depends on XTENSA_MMU
endif # CPU_HAS_MMU
default y
depends on XTENSA_MMU && USERSPACE
endmenu