summaryrefslogtreecommitdiffstats
path: root/GNU_efi_HelloWorld/hello.c
diff options
context:
space:
mode:
authorRegia König2022-08-17 10:49:27 +0200
committerRegia König2022-08-17 10:49:27 +0200
commitbc78d650cfe0b759a48afba17686671ac67c9387 (patch)
tree5268a20f5a4a716a25ae0450fcb0d6635f1ac64d /GNU_efi_HelloWorld/hello.c
parentEfi file outputs own image base (diff)
downloadmemtest86-bc78d650cfe0b759a48afba17686671ac67c9387.tar.gz
memtest86-bc78d650cfe0b759a48afba17686671ac67c9387.tar.xz
memtest86-bc78d650cfe0b759a48afba17686671ac67c9387.zip
Expand analyzation script
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");
}