mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
armv7-r:MPU fix CONFIG naming to include ARM
This commit is contained in:
committed by
Xiang Xiao
parent
602e69a810
commit
e0396327a2
@@ -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()
|
static void mpu_reset_internal()
|
||||||
{
|
{
|
||||||
int region;
|
int region;
|
||||||
@@ -336,7 +336,7 @@ uint32_t mpu_subregion(uintptr_t base, size_t size, uint8_t l2size)
|
|||||||
* MPU initialization.
|
* MPU initialization.
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#if defined(CONFIG_MPU_RESET)
|
#if defined(CONFIG_ARM_MPU_RESET)
|
||||||
void mpu_reset()
|
void mpu_reset()
|
||||||
{
|
{
|
||||||
mpu_reset_internal();
|
mpu_reset_internal();
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ extern "C"
|
|||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#if defined(CONFIG_MPU_RESET)
|
#if defined(CONFIG_ARM_MPU_RESET)
|
||||||
void mpu_reset(void);
|
void mpu_reset(void);
|
||||||
#else
|
#else
|
||||||
# define mpu_reset() do { } while (0)
|
# define mpu_reset() do { } while (0)
|
||||||
|
|||||||
Reference in New Issue
Block a user