File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1717#define AUX_MPU_RDP_SIZE_MASK (0xE03)
1818
1919/* For MPU version 2, the minimum protection region size is 2048 bytes */
20+ #if CONFIG_ARC_MPU_VER == 2
2021#define ARC_FEATURE_MPU_ALIGNMENT_BITS 11
22+ /* For MPU version 3, the minimum protection region size is 32 bytes */
23+ #else
24+ #define ARC_FEATURE_MPU_ALIGNMENT_BITS 5
25+ #endif
2126
2227/**
2328 * This internal function initializes a MPU region
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ extern "C" {
6666#ifdef CONFIG_ARC_CORE_MPU
6767#if CONFIG_ARC_MPU_VER == 2
6868#define Z_ARC_MPU_ALIGN 2048
69- #elif CONFIG_ARC_MPU_VER == 4
69+ #elif ( CONFIG_ARC_MPU_VER == 3 ) || ( CONFIG_ARC_MPU_VER == 4 )
7070#define Z_ARC_MPU_ALIGN 32
7171#else
7272#error "Unsupported MPU version"
Original file line number Diff line number Diff line change 3030#ifdef CONFIG_ARC_MPU_ENABLE
3131 #if CONFIG_ARC_MPU_VER == 2
3232 #define MPU_MIN_SIZE 2048
33- #elif CONFIG_ARC_MPU_VER == 4
33+ #elif ( CONFIG_ARC_MPU_VER == 3) || (CONFIG_ARC_MPU_VER == 4)
3434 #define MPU_MIN_SIZE 32
3535 #endif
3636 #define MPU_MIN_SIZE_ALIGN . = ALIGN (MPU_MIN_SIZE);
You can’t perform that action at this time.
0 commit comments