Add a hang loop for possible future GDB debugging

This commit is contained in:
Curle 2019-07-25 22:13:19 +01:00
parent 568bb11573
commit 0eb8a5ec94

View File

@ -44,6 +44,14 @@ EFI_STATUS LoadKernel(EFI_HANDLE ImageHandle, GFX_INFO* Graphics, EFI_CONFIGURAT
return KernelStatus;
}
Print(L"Syncboot loaded at 0x%llx\n", LoadedImage->ImageBase);
AwaitKey("\0");
int Loop = 1;
while (Loop) {
__asm volatile("pause");
}
/* Get the path to the device */
CHAR16* ESPRootTemp = DevicePathToStr(DevicePathFromHandle(LoadedImage->DeviceHandle));
size_t ESPRootSize = StrSize(ESPRootTemp);