[libc] Set Root PAS in AArch64 baremetal page tables - #1037
Open
MarkMurrayARM wants to merge 4 commits into
Open
[libc] Set Root PAS in AArch64 baremetal page tables#1037MarkMurrayARM wants to merge 4 commits into
MarkMurrayARM wants to merge 4 commits into
Conversation
voltur01
reviewed
Sep 3, 2026
Contributor
|
Thank you for addressing my comments! |
smithp35
reviewed
Sep 4, 2026
smithp35
left a comment
Contributor
There was a problem hiding this comment.
Only one comment nit. Otherwise LGTM
| unsigned long image_attrs = 0x405; // Index = 1, AF=1 | ||
| // Page occupied by the image. AArch64 A-profile startup can run at EL3 on | ||
| // FVPs or real hardware. With FEAT_RME, descriptor bit 11 is NSE rather than | ||
| // nG; NS=0,NSE=1 selects Root PAS for EL3 execution. Without RME, setting |
Contributor
There was a problem hiding this comment.
From what I can tell at EL2 and EL3 all translations are global. Without RME the bit is Res(0) but should be ignored by the hardware. With RME at EL3 bit 11 is the NSE bit. At EL0 and EL1 the bit is used for NG.
Perhaps alter the comment to:
"At EL3 with FEAT_RME, descriptor bit 11 is NSE, otherwise it is RES(0) and ignored by the hardware. At EL0 and EL1 bit 11 is non-global, but as we don't change ASID this has no effect."
smithp35
approved these changes
Sep 7, 2026
smithp35
left a comment
Contributor
There was a problem hiding this comment.
LGTM thanks for the update.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Set descriptor bit 11 for AArch64 baremetal normal-memory block mappings so FEAT_RME interprets them as Root PAS rather than Secure PAS. Keep NS clear and leave R-profile mappings unchanged.