Skip to content

Commit 170b734

Browse files
committed
ARMv7-M MPU: correctly protect 80000000 RAM region
Subregion mask for this region was set fully disabled, instead of fully enabled.
1 parent 171e575 commit 170b734

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/mpu/mbed_mpu_v7m.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void mbed_mpu_init()
163163
0, // IsShareable
164164
1, // IsCacheable
165165
0, // IsBufferable
166-
~0U, // SubRegionDisable
166+
0U, // SubRegionDisable
167167
ARM_MPU_REGION_SIZE_512MB) // Size
168168
);
169169

0 commit comments

Comments
 (0)