Skip to content

Commit d7aeaa0

Browse files
committed
ArmVirtPkg: KvmtoolRtcFdtClientLib: Set MMIO Memory NX
Do not explicitly clear EFI_MEMORY_XP if it is set and in fact explicitly set it as this range is not intended to be executable.
1 parent fb49fe6 commit d7aeaa0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ArmVirtPkg/Library/KvmtoolRtcFdtClientLib/KvmtoolRtcFdtClientLib.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ KvmtoolRtcMapMemory (
4444
EfiGcdMemoryTypeMemoryMappedIo,
4545
RtcPageBase,
4646
EFI_PAGE_SIZE,
47-
EFI_MEMORY_UC | EFI_MEMORY_RUNTIME
47+
EFI_MEMORY_UC | EFI_MEMORY_RUNTIME | EFI_MEMORY_XP // MU_CHANGE: Set RTC memory XP by default
4848
);
4949
if (EFI_ERROR (Status)) {
5050
DEBUG ((
@@ -80,7 +80,7 @@ KvmtoolRtcMapMemory (
8080
Status = gDS->SetMemorySpaceAttributes (
8181
RtcPageBase,
8282
EFI_PAGE_SIZE,
83-
EFI_MEMORY_UC | EFI_MEMORY_RUNTIME
83+
EFI_MEMORY_UC | EFI_MEMORY_RUNTIME | EFI_MEMORY_XP // MU_CHANGE: Set RTC memory XP by default
8484
);
8585
if (EFI_ERROR (Status)) {
8686
DEBUG ((

0 commit comments

Comments
 (0)