fix: 增加MPU功能的开关宏,默认关闭
close #I3WE0S Signed-off-by: JerryH <huangjieliang@huawei.com> Change-Id: Id193fd555877ac0c6b5b43e5dd5ede32531b86c4
This commit is contained in:
parent
11bca47b6e
commit
9709d29b87
|
@ -32,6 +32,7 @@
|
|||
#include "los_config.h"
|
||||
#include "los_context.h"
|
||||
|
||||
#if (LOSCFG_MPU_ENABLE == 1)
|
||||
|
||||
#define SIZE_4G_BYTE 0x100000000
|
||||
#define MPU_MAX_REGION_NUM 8
|
||||
|
@ -233,4 +234,4 @@ INT32 HalMpuUnusedRegionGet(VOID)
|
|||
return id;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include "los_config.h"
|
||||
#include "los_context.h"
|
||||
|
||||
#if (LOSCFG_MPU_ENABLE == 1)
|
||||
|
||||
#define SIZE_4G_BYTE 0x100000000
|
||||
#define MPU_MAX_REGION_NUM 8
|
||||
|
@ -233,4 +234,4 @@ INT32 HalMpuUnusedRegionGet(VOID)
|
|||
return id;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include "los_config.h"
|
||||
#include "los_context.h"
|
||||
|
||||
#if (LOSCFG_MPU_ENABLE == 1)
|
||||
|
||||
#define SIZE_4G_BYTE 0x100000000
|
||||
#define MPU_MAX_REGION_NUM 8
|
||||
|
@ -233,4 +234,4 @@ INT32 HalMpuUnusedRegionGet(VOID)
|
|||
return id;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -765,6 +765,14 @@ extern UINT8 *m_aucSysMem0;
|
|||
#define LOSCFG_SECURE_STACK_DEFAULT_SIZE 512
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @ingroup los_config
|
||||
* Configuration item for mpu.
|
||||
*/
|
||||
#ifndef LOSCFG_MPU_ENABLE
|
||||
#define LOSCFG_MPU_ENABLE 0
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue