Ring3: Small fix.

This commit is contained in:
Mikhail Krichanov 2024-02-22 11:23:22 +03:00
parent c8c5e3ea28
commit 466a371a78

View File

@ -44,6 +44,7 @@ GoToRing3 (
VA_END (Marker);
EnableSMAP ();
if (Number == 2) {
//
// Necessary fix for ProcessLibraryConstructorList() -> DxeCcProbeLibConstructor()
//
@ -52,14 +53,17 @@ GoToRing3 (
FixedPcdGet32 (PcdOvmfWorkAreaSize),
EFI_MEMORY_XP | EFI_MEMORY_USER
);
}
Status = CallRing3 (Input);
if (Number == 2) {
SetUefiImageMemoryAttributes (
FixedPcdGet32 (PcdOvmfWorkAreaBase),
FixedPcdGet32 (PcdOvmfWorkAreaSize),
EFI_MEMORY_XP
);
}
return Status;
}