diff options
Diffstat (limited to 'ArmPkg/Library/ArmMmuLib')
-rw-r--r-- | ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c b/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c index 89da40fd8e..4a0513392a 100644 --- a/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c +++ b/ArmPkg/Library/ArmMmuLib/AArch64/ArmMmuLibCore.c @@ -393,7 +393,7 @@ GcdAttributeToPageAttribute ( }
if ((GcdAttributes & EFI_MEMORY_RO) != 0) {
- PageAttributes |= TT_AP_RO_RO;
+ PageAttributes |= TT_AP_NO_RO;
}
return PageAttributes | TT_AF;
@@ -492,7 +492,7 @@ ArmSetMemoryRegionReadOnly ( return SetMemoryRegionAttribute (
BaseAddress,
Length,
- TT_AP_RO_RO,
+ TT_AP_NO_RO,
~TT_ADDRESS_MASK_BLOCK_ENTRY
);
}
@@ -506,7 +506,7 @@ ArmClearMemoryRegionReadOnly ( return SetMemoryRegionAttribute (
BaseAddress,
Length,
- TT_AP_RW_RW,
+ TT_AP_NO_RW,
~(TT_ADDRESS_MASK_BLOCK_ENTRY | TT_AP_MASK)
);
}
|