summaryrefslogtreecommitdiffstats
path: root/GNU_efi_HelloWorld/hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'GNU_efi_HelloWorld/hello.c')
-rw-r--r--GNU_efi_HelloWorld/hello.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/GNU_efi_HelloWorld/hello.c b/GNU_efi_HelloWorld/hello.c
index 171db1e..f40df6e 100644
--- a/GNU_efi_HelloWorld/hello.c
+++ b/GNU_efi_HelloWorld/hello.c
@@ -1,5 +1,6 @@
#include <efi.h>
#include <efilib.h>
+#include <efidebug.h>
EFI_STATUS
EFIAPI
@@ -23,7 +24,9 @@ efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) {
Print(L"Image base: 0x%lx\n", loaded_image->ImageBase);
- int wait = 1;
+ DEBUG((D_ERROR, "AllocatePool: out of pool %x\n", status));
+
+ volatile int wait = 1;
while(wait) {
__asm__ __volatile__("pause");
}