mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
armv8-m:MPU fix CONFIG naming to include ARM
This commit is contained in:
committed by
Xiang Xiao
parent
53307ea9b2
commit
602e69a810
@@ -79,7 +79,7 @@ unsigned int mpu_allocregion(void)
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#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;
|
||||
@@ -184,7 +184,7 @@ void mpu_configure_region(uintptr_t base, size_t size,
|
||||
* MPU initialization.
|
||||
*
|
||||
****************************************************************************/
|
||||
#if defined(CONFIG_MPU_RESET)
|
||||
#if defined(CONFIG_ARM_MPU_RESET)
|
||||
void mpu_reset()
|
||||
{
|
||||
mpu_reset_internal();
|
||||
|
||||
@@ -178,7 +178,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#if defined(CONFIG_MPU_RESET)
|
||||
#if defined(CONFIG_ARM_MPU_RESET)
|
||||
void mpu_reset(void);
|
||||
#else
|
||||
# define mpu_reset() do { } while (0)
|
||||
|
||||
Reference in New Issue
Block a user