mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
ArmMmuLib: Worked around lack of EL2&0 translation support.
This commit is contained in:
parent
bd8887ce13
commit
116f43d49c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user