fix: 增加MPU功能的开关宏,默认关闭

close #I3WE0S

Signed-off-by: JerryH <huangjieliang@huawei.com>
Change-Id: Id193fd555877ac0c6b5b43e5dd5ede32531b86c4
This commit is contained in:
JerryH 2021-08-10 19:27:14 +08:00
parent 11bca47b6e
commit 9709d29b87
4 changed files with 14 additions and 3 deletions

View File

@ -32,6 +32,7 @@
#include "los_config.h" #include "los_config.h"
#include "los_context.h" #include "los_context.h"
#if (LOSCFG_MPU_ENABLE == 1)
#define SIZE_4G_BYTE 0x100000000 #define SIZE_4G_BYTE 0x100000000
#define MPU_MAX_REGION_NUM 8 #define MPU_MAX_REGION_NUM 8
@ -233,4 +234,4 @@ INT32 HalMpuUnusedRegionGet(VOID)
return id; return id;
} }
} }
#endif

View File

@ -32,6 +32,7 @@
#include "los_config.h" #include "los_config.h"
#include "los_context.h" #include "los_context.h"
#if (LOSCFG_MPU_ENABLE == 1)
#define SIZE_4G_BYTE 0x100000000 #define SIZE_4G_BYTE 0x100000000
#define MPU_MAX_REGION_NUM 8 #define MPU_MAX_REGION_NUM 8
@ -233,4 +234,4 @@ INT32 HalMpuUnusedRegionGet(VOID)
return id; return id;
} }
} }
#endif

View File

@ -32,6 +32,7 @@
#include "los_config.h" #include "los_config.h"
#include "los_context.h" #include "los_context.h"
#if (LOSCFG_MPU_ENABLE == 1)
#define SIZE_4G_BYTE 0x100000000 #define SIZE_4G_BYTE 0x100000000
#define MPU_MAX_REGION_NUM 8 #define MPU_MAX_REGION_NUM 8
@ -233,4 +234,4 @@ INT32 HalMpuUnusedRegionGet(VOID)
return id; return id;
} }
} }
#endif

View File

@ -765,6 +765,14 @@ extern UINT8 *m_aucSysMem0;
#define LOSCFG_SECURE_STACK_DEFAULT_SIZE 512 #define LOSCFG_SECURE_STACK_DEFAULT_SIZE 512
#endif #endif
/**
* @ingroup los_config
* Configuration item for mpu.
*/
#ifndef LOSCFG_MPU_ENABLE
#define LOSCFG_MPU_ENABLE 0
#endif
#ifdef __cplusplus #ifdef __cplusplus
#if __cplusplus #if __cplusplus
} }