Get rid of boot services code after exiting boot services
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
7c38efc802
commit
51886a05dd
@ -149,6 +149,10 @@ BlEnablePaging(IN PLIST_ENTRY MemoryMappings,
|
|||||||
BlDbgPrint(L"Exiting EFI boot services\n");
|
BlDbgPrint(L"Exiting EFI boot services\n");
|
||||||
EfiSystemTable->BootServices->ExitBootServices(EfiImageHandle, MemoryMap->MapKey);
|
EfiSystemTable->BootServices->ExitBootServices(EfiImageHandle, MemoryMap->MapKey);
|
||||||
|
|
||||||
|
/* No runtime services should touch boot services code, so get rid of it all at this point */
|
||||||
|
EfiSystemTable->RuntimeServices->SetVirtualAddressMap(MemoryMap->MapSize, MemoryMap->DescriptorSize,
|
||||||
|
MemoryMap->DescriptorVersion, MemoryMap->Map);
|
||||||
|
|
||||||
/* Write PML4 to CR3 */
|
/* Write PML4 to CR3 */
|
||||||
HlWriteCR3((UINT_PTR)*PtePointer);
|
HlWriteCR3((UINT_PTR)*PtePointer);
|
||||||
|
|
||||||
|
@ -255,6 +255,10 @@ BlEnablePaging(IN PLIST_ENTRY MemoryMappings,
|
|||||||
BlDbgPrint(L"Exiting EFI boot services\n");
|
BlDbgPrint(L"Exiting EFI boot services\n");
|
||||||
EfiSystemTable->BootServices->ExitBootServices(EfiImageHandle, MemoryMap->MapKey);
|
EfiSystemTable->BootServices->ExitBootServices(EfiImageHandle, MemoryMap->MapKey);
|
||||||
|
|
||||||
|
/* No runtime services should touch boot services code, so get rid of it all at this point */
|
||||||
|
EfiSystemTable->RuntimeServices->SetVirtualAddressMap(MemoryMap->MapSize, MemoryMap->DescriptorSize,
|
||||||
|
MemoryMap->DescriptorVersion, MemoryMap->Map);
|
||||||
|
|
||||||
/* Enable PAE if supported by CPU */
|
/* Enable PAE if supported by CPU */
|
||||||
if(PaeExtension)
|
if(PaeExtension)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user