-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor arm_mpu to use CMSIS directly #8457
Refactor arm_mpu to use CMSIS directly #8457
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8457 +/- ##
=======================================
Coverage 64.61% 64.61%
=======================================
Files 421 421
Lines 40296 40296
Branches 6803 6803
=======================================
Hits 26037 26037
Misses 11126 11126
Partials 3133 3133 Continue to review full report at Codecov.
|
CI is failing because the beetle doesn't have CMSIS headers. You might be able to fix by defining __MPU_PRESENT for that SoC, but I vaguely remember Vincenzo having some issues with that macro when he originally introduced MPU support into Zephyr. |
ca39018
to
cceaeb4
Compare
@MaureenHelm I added a commit to explicitly define the ARM MPU related macros for Beetle. It looks it is the only arm SOC that does not include CMSIS headers, so this is a straightforward workaround, IMO. |
This commit removes the macro definitions for MPU_CTRL register bitmasks, defined in arm_mpu.h, and modifies the MPU driver to directly use the equivalent macros defined in ARM CMSIS. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit removes the macro definitions for MPU_RBAR register bitmasks, defined in arm_mpu.h, and modifies the MPU driver to directly use the equivalent macros defined in ARM CMSIS. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit removes the macro definitions for MPU_RASR register bitmasks, defined in arm_mpu.h, and modifies the MPU driver to directly use the equivalent macros defined in ARM CMSIS. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
cceaeb4
to
4750bd6
Compare
Duplicate the CMSIS MPU-related macro definitions specifically for Beetle SOC which is is not compliant with ARM CMSIS and does not include the ARM CMSIS headers. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
4750bd6
to
3f6372b
Compare
Initial PR towards implementing #8018.
This PR refactors the ARM MPU implementation to use the CMSIS macro definitions directly.