Skip to content

Reconfigure pmsav8 EL1 MPU regions at runtime #32

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

Merged
merged 2 commits into from
Apr 24, 2025

Conversation

emanuelemessina
Copy link
Contributor

Added a method to the pmsav8 EL1 MPU that allows the reconfiguration of only a range of regions after the mpu was configured, without rewriting the whole Config.

Added method to the EL1 MPU that allows to reconfigure a only range of regions after the mpu was configured, without rewriting memory indirection attributes.
@jonathanpallant
Copy link
Contributor

Could we refactor out the region setting code into some private fn set_region() to avoid the duplication?

New methods
- set_region
- set_attributes
- background_region_enable

Renamed reconfigure_regions to set_regions and removed the disable/enable lines for consistency.

Refactored the configure method to use the new methods internally.
@jonathanpallant
Copy link
Contributor

Fantastic. Thanks!

@jonathanpallant jonathanpallant merged commit 59b0af5 into rust-embedded:main Apr 24, 2025
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants