mirror of https://github.com/acidanthera/audk.git
ArmMmuLib: Worked around lack of EL2&0 translation support.
This commit is contained in:
parent
3105aa040c
commit
6d389121c8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue