Add full paging support for AMD64 and i686 architectures, including PAE support

This commit is contained in:
2022-12-11 20:14:04 +01:00
parent 324a88cc01
commit 0572b208f1
6 changed files with 502 additions and 11 deletions

View File

@@ -330,6 +330,7 @@ BlRegisterXtLoaderProtocol()
EfiLdrProtocol.AllocatePool = BlEfiMemoryAllocatePool;
EfiLdrProtocol.FreePages = BlEfiMemoryFreePages;
EfiLdrProtocol.FreePool = BlEfiMemoryFreePool;
EfiLdrProtocol.EnablePaging = BlEnablePaging;
EfiLdrProtocol.GetMemoryMap = BlGetMemoryMap;
EfiLdrProtocol.InitializeVirtualMemory = BlInitializeVirtualMemory;
EfiLdrProtocol.MapVirtualMemory = BlMapVirtualMemory;
@@ -439,7 +440,7 @@ BlStartXtLoader(IN EFI_HANDLE ImageHandle,
BlCreateStack(&EfiLoaderStack, XTOS_KERNEL_STACK_SIZE, &BlStartNewStack);
/* Infinite bootloader loop */
BlDbgPrint(L"ERROR: Unexpected exception occurred, probably did not create a new stack");
BlDbgPrint(L"ERROR: Unexpected exception occurred, probably did not create a new stack\n");
BlEfiPrint(L"System halted!");
for(;;);