Compare commits
2 Commits
1bbcacb90e
...
a06a298f8f
Author | SHA1 | Date | |
---|---|---|---|
a06a298f8f | |||
7601f3d93b |
|
@ -45,12 +45,9 @@ EFI_STATUS LoadKernel(EFI_HANDLE ImageHandle, GFX_INFO* Graphics, EFI_CONFIGURAT
|
||||||
}
|
}
|
||||||
|
|
||||||
Print(L"Syncboot loaded at 0x%llx\n", LoadedImage->ImageBase);
|
Print(L"Syncboot loaded at 0x%llx\n", LoadedImage->ImageBase);
|
||||||
|
Print(L"BootServices start at 0x%llx, ExitBootServices at %llx.\r\n", BS, BS->ExitBootServices);
|
||||||
AwaitKey("\0");
|
AwaitKey("\0");
|
||||||
|
|
||||||
int Loop = 1;
|
|
||||||
while (Loop) {
|
|
||||||
__asm volatile("pause");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get the path to the device */
|
/* Get the path to the device */
|
||||||
CHAR16* ESPRootTemp = DevicePathToStr(DevicePathFromHandle(LoadedImage->DeviceHandle));
|
CHAR16* ESPRootTemp = DevicePathToStr(DevicePathFromHandle(LoadedImage->DeviceHandle));
|
||||||
|
@ -1460,7 +1457,7 @@ EFI_STATUS LoadKernel(EFI_HANDLE ImageHandle, GFX_INFO* Graphics, EFI_CONFIGURAT
|
||||||
|
|
||||||
FILELOADER_PARAMS* LoaderBlock;
|
FILELOADER_PARAMS* LoaderBlock;
|
||||||
|
|
||||||
KernelStatus = BS->AllocatePool(EfiLoaderData, sizeof(FILELOADER_PARAMS), (void**)LoaderBlock);
|
KernelStatus = BS->AllocatePool(EfiLoaderData, sizeof(FILELOADER_PARAMS), (void**)&LoaderBlock);
|
||||||
if (EFI_ERROR(KernelStatus)) {
|
if (EFI_ERROR(KernelStatus)) {
|
||||||
Print(L"Error allocating loaderblock pool. Code 0x%llx\r\n", KernelStatus);
|
Print(L"Error allocating loaderblock pool. Code 0x%llx\r\n", KernelStatus);
|
||||||
return KernelStatus;
|
return KernelStatus;
|
||||||
|
@ -1525,7 +1522,7 @@ EFI_STATUS LoadKernel(EFI_HANDLE ImageHandle, GFX_INFO* Graphics, EFI_CONFIGURAT
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AwaitKey(L"Done! Next step is jumping to kernel.\r\n");
|
// AwaitKey(L"Done! Next step is jumping to kernel.\r\n");
|
||||||
|
|
||||||
// Call the kernel!
|
// Call the kernel!
|
||||||
LoaderBlock->UEFI_Version = UEFIVer;
|
LoaderBlock->UEFI_Version = UEFIVer;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user