提交 669f6190 编写于 作者: O openharmony_ci 提交者: Gitee

!258 添加MPU功能的开关宏

Merge pull request !258 from JerryH/mpu
......@@ -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
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册