arch: arm: aarch32: Move mpu code up a level
Move the mpu code to the common aarch32 directory in preparation for Cortex-R mpu support Signed-off-by: Bradley Bolen <bbolen@lexmark.com>
This commit is contained in:
parent
b8aae321a1
commit
95a7e71661
11 changed files with 10 additions and 8 deletions
|
@ -27,11 +27,12 @@ zephyr_library_sources_ifdef(CONFIG_THREAD_LOCAL_STORAGE ../common/tls.c)
|
|||
zephyr_library_sources_ifdef(CONFIG_USERSPACE userspace.S)
|
||||
|
||||
add_subdirectory_ifdef(CONFIG_CPU_CORTEX_M cortex_m)
|
||||
add_subdirectory_ifdef(CONFIG_ARM_MPU cortex_m/mpu)
|
||||
add_subdirectory_ifdef(CONFIG_CPU_CORTEX_M_HAS_CMSE cortex_m/cmse)
|
||||
add_subdirectory_ifdef(CONFIG_ARM_SECURE_FIRMWARE cortex_m/tz)
|
||||
add_subdirectory_ifdef(CONFIG_ARM_NONSECURE_FIRMWARE cortex_m/tz)
|
||||
|
||||
add_subdirectory_ifdef(CONFIG_ARM_MPU mpu)
|
||||
|
||||
add_subdirectory_ifdef(CONFIG_CPU_CORTEX_R cortex_a_r)
|
||||
|
||||
zephyr_linker_sources(ROM_START SORT_KEY 0x0vectors vector_table.ld)
|
||||
|
|
|
@ -259,3 +259,5 @@ endchoice
|
|||
|
||||
rsource "cortex_m/Kconfig"
|
||||
rsource "cortex_a_r/Kconfig"
|
||||
|
||||
rsource "mpu/Kconfig"
|
||||
|
|
|
@ -419,7 +419,6 @@ config CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION_PAGE_SIZE
|
|||
|
||||
endif # CORTEX_M_DEBUG_NULL_POINTER_EXCEPTION
|
||||
|
||||
rsource "mpu/Kconfig"
|
||||
rsource "tz/Kconfig"
|
||||
|
||||
endif # CPU_CORTEX_M
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_ARCH_ARM_CORE_AARCH32_CORTEX_M_MPU_ARM_MPU_V7_INTERNAL_H_
|
||||
#define ZEPHYR_ARCH_ARM_CORE_AARCH32_CORTEX_M_MPU_ARM_MPU_V7_INTERNAL_H_
|
||||
#ifndef ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V7_INTERNAL_H_
|
||||
#define ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V7_INTERNAL_H_
|
||||
|
||||
|
||||
#include <sys/math_extras.h>
|
||||
|
@ -349,4 +349,4 @@ static int mpu_configure_dynamic_mpu_regions(const struct z_arm_mpu_partition
|
|||
return mpu_reg_index;
|
||||
}
|
||||
|
||||
#endif /* ZEPHYR_ARCH_ARM_CORE_AARCH32_CORTEX_M_MPU_ARM_MPU_V7_INTERNAL_H_ */
|
||||
#endif /* ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V7_INTERNAL_H_ */
|
|
@ -5,8 +5,8 @@
|
|||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#ifndef ZEPHYR_ARCH_ARM_CORE_AARCH32_CORTEX_M_MPU_ARM_MPU_V8_INTERNAL_H_
|
||||
#define ZEPHYR_ARCH_ARM_CORE_AARCH32_CORTEX_M_MPU_ARM_MPU_V8_INTERNAL_H_
|
||||
#ifndef ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V8_INTERNAL_H_
|
||||
#define ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V8_INTERNAL_H_
|
||||
|
||||
#include <aarch32/cortex_m/cmse.h>
|
||||
#define LOG_LEVEL CONFIG_MPU_LOG_LEVEL
|
||||
|
@ -583,4 +583,4 @@ static int mpu_configure_dynamic_mpu_regions(const struct z_arm_mpu_partition
|
|||
return mpu_reg_index;
|
||||
}
|
||||
|
||||
#endif /* ZEPHYR_ARCH_ARM_CORE_AARCH32_CORTEX_M_MPU_ARM_MPU_V8_INTERNAL_H_ */
|
||||
#endif /* ZEPHYR_ARCH_ARM_CORE_AARCH32_MPU_ARM_MPU_V8_INTERNAL_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue