-
Notifications
You must be signed in to change notification settings - Fork 7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arch: arm: add additional sanity checks before MPU config change
This commit inserts sanity checks every time we are performing a (re)-configuration of one or multiple MPU regions, ensuring that we do not attempt to configure an invalid region number. Particulary for arm_mpu_config(), called during pre-kernel initialization phase, we add a system ASSERT if we attempt to initialize more regions that what is supported by hardware. We do this to ensure the misconfiguration is detected early and the system boot is aborted. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
- Loading branch information
Showing
1 changed file
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters