anjiahao1 opened a new pull request, #22403:
URL: https://github.com/apache/nuttx/pull/22403
## Summary
Add multi-region helpers to the ARMv7-R MPU interface.
mpu_configure_region() allocates and configures a single region at a
time. A caller that needs a range spanning two adjacent regions must
allocate both up front; add mpu_allocregions() to reserve several
consecutive regions at once and mpu_modify_regions() to program a
range that may cover two regions.
mpu_allocregion() is kept as a one-region macro so existing callers
are unchanged.
## Impact
* Is new feature added? YES - two new MPU helpers; existing API is
unchanged.
* Impact on user: NO
* Impact on build: NO
* Impact on hardware: NO - only used when a board calls the new API.
* Impact on documentation: NO - covered by the mpu.h header comments.
* Impact on security: NO
* Impact on compatibility: NO
## Testing
Build host: Linux x86_64, arm-none-eabi-gcc 12.2.
```
tools/configure.sh -a <apps> qemu-armv7r:nsh
make -j10
```
The build completes with the new code compiled in.
## PR verification
* [x] This PR introduces only one functional change.
* [x] I have updated all required description fields above.
* [x] My PR adheres to Contributing Guidelines and Documentation.
* [ ] My PR is still work in progress (not ready for review).
* [x] My PR is ready for review and can be safely merged into a codebase.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]