arch: arc: enable MPU_REQUIRES_NON_OVERLAPPING_REGIONS for arc mpu ver 3
arc mpu ver3 does not allow mpu region overlap, so need to enable MPU_REQUIRES_NON_OVERLAPPING_REGIONS. Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
parent
99c3949e9f
commit
85f591e866
2 changed files with 2 additions and 2 deletions
|
@ -29,5 +29,6 @@ config ARC_MPU
|
||||||
select THREAD_STACK_INFO
|
select THREAD_STACK_INFO
|
||||||
select MEMORY_PROTECTION
|
select MEMORY_PROTECTION
|
||||||
select MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT if ARC_MPU_VER = 2
|
select MPU_REQUIRES_POWER_OF_TWO_ALIGNMENT if ARC_MPU_VER = 2
|
||||||
|
select MPU_REQUIRES_NON_OVERLAPPING_REGIONS if ARC_MPU_VER = 3
|
||||||
help
|
help
|
||||||
Target has ARC MPU (currently only works for EMSK 2.2/2.3 ARCEM7D)
|
Target has ARC MPU (currently only works for EMSK 2.2/2.3 ARCEM7D)
|
||||||
|
|
|
@ -188,8 +188,7 @@ extern "C" {
|
||||||
#define K_MEM_PARTITION_IS_WRITABLE(attr) \
|
#define K_MEM_PARTITION_IS_WRITABLE(attr) \
|
||||||
({ \
|
({ \
|
||||||
int __is_writable__; \
|
int __is_writable__; \
|
||||||
attr &= (AUX_MPU_ATTR_UW | AUX_MPU_ATTR_KW); \
|
switch (attr & (AUX_MPU_ATTR_UW | AUX_MPU_ATTR_KW)) { \
|
||||||
switch (attr) { \
|
|
||||||
case (AUX_MPU_ATTR_UW | AUX_MPU_ATTR_KW): \
|
case (AUX_MPU_ATTR_UW | AUX_MPU_ATTR_KW): \
|
||||||
case AUX_MPU_ATTR_UW: \
|
case AUX_MPU_ATTR_UW: \
|
||||||
case AUX_MPU_ATTR_KW: \
|
case AUX_MPU_ATTR_KW: \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue