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 bd8887ce13
commit 116f43d49c

View File

@ -488,7 +488,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;