mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-22 21:24:35 +02:00
Ring3: Small fix.
This commit is contained in:
parent
c8c5e3ea28
commit
466a371a78
@ -44,22 +44,26 @@ GoToRing3 (
|
|||||||
VA_END (Marker);
|
VA_END (Marker);
|
||||||
EnableSMAP ();
|
EnableSMAP ();
|
||||||
|
|
||||||
//
|
if (Number == 2) {
|
||||||
// Necessary fix for ProcessLibraryConstructorList() -> DxeCcProbeLibConstructor()
|
//
|
||||||
//
|
// Necessary fix for ProcessLibraryConstructorList() -> DxeCcProbeLibConstructor()
|
||||||
SetUefiImageMemoryAttributes (
|
//
|
||||||
FixedPcdGet32 (PcdOvmfWorkAreaBase),
|
SetUefiImageMemoryAttributes (
|
||||||
FixedPcdGet32 (PcdOvmfWorkAreaSize),
|
FixedPcdGet32 (PcdOvmfWorkAreaBase),
|
||||||
EFI_MEMORY_XP | EFI_MEMORY_USER
|
FixedPcdGet32 (PcdOvmfWorkAreaSize),
|
||||||
);
|
EFI_MEMORY_XP | EFI_MEMORY_USER
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
Status = CallRing3 (Input);
|
Status = CallRing3 (Input);
|
||||||
|
|
||||||
SetUefiImageMemoryAttributes (
|
if (Number == 2) {
|
||||||
FixedPcdGet32 (PcdOvmfWorkAreaBase),
|
SetUefiImageMemoryAttributes (
|
||||||
FixedPcdGet32 (PcdOvmfWorkAreaSize),
|
FixedPcdGet32 (PcdOvmfWorkAreaBase),
|
||||||
EFI_MEMORY_XP
|
FixedPcdGet32 (PcdOvmfWorkAreaSize),
|
||||||
);
|
EFI_MEMORY_XP
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user