Skip to content

Commit

Permalink
[BACKPORT] armv7-r:MPU fix CONFIG naming to include ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
davids5 committed May 25, 2024
1 parent 6a492d9 commit 6fbb26e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions arch/arm/src/armv7-r/arm_mpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static inline uint32_t mpu_subregion_ls(size_t offset, uint8_t l2size)
*
****************************************************************************/

#if defined(CONFIG_MPU_RESET) || defined(CONFIG_ARM_MPU_EARLY_RESET)
#if defined(CONFIG_ARM_MPU_RESET) || defined(CONFIG_ARM_MPU_EARLY_RESET)
static void mpu_reset_internal()
{
int region;
Expand Down Expand Up @@ -336,7 +336,7 @@ uint32_t mpu_subregion(uintptr_t base, size_t size, uint8_t l2size)
* MPU initialization.
*
****************************************************************************/
#if defined(CONFIG_MPU_RESET)
#if defined(CONFIG_ARM_MPU_RESET)
void mpu_reset()
{
mpu_reset_internal();
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/src/armv7-r/mpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ extern "C"
*
****************************************************************************/

#if defined(CONFIG_MPU_RESET)
#if defined(CONFIG_ARM_MPU_RESET)
void mpu_reset(void);
#else
# define mpu_reset() do { } while (0)
Expand Down

0 comments on commit 6fbb26e

Please sign in to comment.