From 0eb8a5ec942d2220985e7eb4596656dfb15581d0 Mon Sep 17 00:00:00 2001 From: Curle Date: Thu, 25 Jul 2019 22:13:19 +0100 Subject: [PATCH] Add a hang loop for possible future GDB debugging --- src/bootloader.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/bootloader.c b/src/bootloader.c index e799609..d493114 100644 --- a/src/bootloader.c +++ b/src/bootloader.c @@ -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);