xtensa: imply CONFIG_ARCH_HAS_RESERVED_PAGE_FRAMES if MMU
The Zephyr linker script usually puts something before z_mapped_start (where .text is), for example, vecbase vectors. So we need to reserve those space or else k_mem_map() would be mapping those which may result in faults. To avoid mapping there, CONFIG_ARCH_HAS_RESERVED_PAGE_FRAMES needs to be used. Since it is common when MMU is enabled, we should enable it by default using imply. All current Xtensa MMU SoCs all have this selected anyway. Using 'imply' instead of 'select' is to allow it to be disabled if so desired. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
committed by
Henrik Brix Andersen
parent
48537aeb1f
commit
301abd8630
@@ -138,6 +138,7 @@ config XTENSA
|
||||
select ARCH_HAS_THREAD_PRIV_STACK_SPACE_GET if USERSPACE
|
||||
select ARCH_SUPPORTS_COREDUMP_STACK_PTR if !SMP
|
||||
select ARCH_HAS_USERSPACE if XTENSA_MMU || XTENSA_MPU
|
||||
imply ARCH_HAS_RESERVED_PAGE_FRAMES if XTENSA_MMU
|
||||
help
|
||||
Xtensa architecture
|
||||
|
||||
|
||||
@@ -10,6 +10,5 @@ config SOC_XTENSA_DC233C
|
||||
select CPU_HAS_DCACHE
|
||||
select CPU_HAS_ICACHE
|
||||
select CPU_HAS_MMU
|
||||
select ARCH_HAS_RESERVED_PAGE_FRAMES if XTENSA_MMU
|
||||
select ARCH_SUPPORTS_COREDUMP
|
||||
select ARCH_SUPPORTS_COREDUMP_PRIV_STACKS
|
||||
|
||||
@@ -12,7 +12,6 @@ config SOC_SERIES_INTEL_ADSP_ACE
|
||||
select DW_ICTL_ACE
|
||||
select SOC_HAS_RUNTIME_NUM_CPUS
|
||||
select HAS_PM
|
||||
select ARCH_HAS_RESERVED_PAGE_FRAMES if MMU
|
||||
select ARCH_HAS_GDBSTUB
|
||||
|
||||
config SOC_SERIES_INTEL_ADSP_ACE15
|
||||
|
||||
Reference in New Issue
Block a user