Skip to content

Commit

Permalink
ArmMmuLib: Worked around lack of EL2&0 translation support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Krichanov committed Sep 13, 2024
1 parent 3105aa0 commit 6d38912
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,12 @@ GcdAttributeToPageAttribute (
PageAttributes |= TT_AP_RW_RW;
}
} else {
PageAttributes |= TT_UXN_MASK;
if (ArmReadCurrentEL () == AARCH64_EL1) {
//
// TODO: Add EL2&0 support.
//
PageAttributes |= TT_UXN_MASK;
}

if ((GcdAttributes & EFI_MEMORY_RO) != 0) {
PageAttributes |= TT_AP_NO_RO;
Expand Down

0 comments on commit 6d38912

Please sign in to comment.