Do not call SetVirtualAddressMap() as this might break boot process and runtime services are mapped anyway
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
1a93c198ed
commit
bb56641e4b
@ -120,10 +120,6 @@ BlEnablePaging(IN PLIST_ENTRY MemoryMappings,
|
|||||||
return STATUS_EFI_ABORTED;
|
return STATUS_EFI_ABORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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 */
|
||||||
HlWriteControlRegister(3, (UINT_PTR)*PtePointer);
|
HlWriteControlRegister(3, (UINT_PTR)*PtePointer);
|
||||||
|
|
||||||
|
@ -214,10 +214,6 @@ BlEnablePaging(IN PLIST_ENTRY MemoryMappings,
|
|||||||
return STATUS_EFI_ABORTED;
|
return STATUS_EFI_ABORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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 Physical Address Extension (PAE) */
|
/* Enable Physical Address Extension (PAE) */
|
||||||
HlWriteControlRegister(4, HlReadControlRegister(4) | CR4_PAE);
|
HlWriteControlRegister(4, HlReadControlRegister(4) | CR4_PAE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user