Skip to content

Region access perms#186

Merged
jonathanpallant merged 3 commits into
rust-embedded:mainfrom
rikyborg:region-access-perms
Jun 15, 2026
Merged

Region access perms#186
jonathanpallant merged 3 commits into
rust-embedded:mainfrom
rikyborg:region-access-perms

Conversation

@rikyborg

Copy link
Copy Markdown
Contributor

Fixes #182

Add user-configurable access permissions to pmsav7::Region according to B5.2.1 Access permissions.

⚠️ Warning: this is a breaking change! This PR adds a new field to Region, breaking code that explicitly instantiates a new region.

Feedback on names of AccessPerms variants is most welcome.

Comment thread examples/mps3-an536/src/bin/registers.rs
@jonathanpallant

Copy link
Copy Markdown
Contributor

LGTM. I opened #187 to track the ARMv7 stuff being in the wrong example.

@jonathanpallant jonathanpallant added this pull request to the merge queue Jun 15, 2026
Merged via the queue into rust-embedded:main with commit a2a8fca Jun 15, 2026
52 checks passed
@rikyborg rikyborg deleted the region-access-perms branch June 15, 2026 14:56
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.

Mpu::configure() doesn't set AP bits in RACR, so all accesses generate a Permission fault

2 participants