ArmMmuLib: Worked around lack of EL2&0 translation support.

This commit is contained in:
Mikhail Krichanov 2024-09-13 14:40:24 +03:00
parent 3105aa040c
commit 6d389121c8
1 changed files with 6 additions and 1 deletions

View File

@ -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;