From 62225b036c1b7ad5ed389e36783ae4906e14ba94 Mon Sep 17 00:00:00 2001 From: Regia König Date: Thu, 1 Sep 2022 11:45:13 +0200 Subject: Remove memtest_old --- GNU_efi_HelloWorld/Makefile | 4 +++- GNU_efi_HelloWorld/hello.c | 9 ++++++--- GNU_efi_HelloWorld/hello.debug | Bin 123240 -> 123240 bytes GNU_efi_HelloWorld/hello.efi | Bin 46888 -> 46888 bytes 4 files changed, 9 insertions(+), 4 deletions(-) (limited to 'GNU_efi_HelloWorld') diff --git a/GNU_efi_HelloWorld/Makefile b/GNU_efi_HelloWorld/Makefile index 80f1398..63deda2 100644 --- a/GNU_efi_HelloWorld/Makefile +++ b/GNU_efi_HelloWorld/Makefile @@ -12,7 +12,9 @@ EFI_LDS = $(EFILIB)/elf_$(ARCH)_efi.lds CFLAGS = $(EFFINCS) -fno-stack-protector -fpic \ -fshort-wchar -mno-red-zone -Wall -CFLAGS += -ggdb3 -O0 -DDEBUG -DEFI_DEBUG=1 +CFLAGS += -ggdb3 -O0 -DEFI_DEBUG=1 +# -DDEBUG + ifeq ($(ARCH),x86_64) CFLAGS += -DEFI_FUNCTION_WRAPPER diff --git a/GNU_efi_HelloWorld/hello.c b/GNU_efi_HelloWorld/hello.c index 06b2b0b..f135c21 100644 --- a/GNU_efi_HelloWorld/hello.c +++ b/GNU_efi_HelloWorld/hello.c @@ -22,13 +22,16 @@ efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) { } Print(L"Image base: 0x%lx\n", loaded_image->ImageBase); + Print(L"UefiMain: 0x%1x\n", (unsigned long)efi_main); - DEBUG((D_ERROR, "AllocatePool: out of pool %x\n", status)); + DEBUG((D_ERROR, (CHAR8*)"DEBUG_TEST DEBUG_TEST\r\n")); - volatile int wait = 1; + DEBUG((D_ERROR, (CHAR8*)"My Entry Point: 0x%08x\r\n",(CHAR16*)efi_main)); + +/* volatile int wait = 1; while(wait) { __asm__ __volatile__("pause"); } - +*/ return EFI_SUCCESS; } diff --git a/GNU_efi_HelloWorld/hello.debug b/GNU_efi_HelloWorld/hello.debug index f7fd077..eb4117a 100755 Binary files a/GNU_efi_HelloWorld/hello.debug and b/GNU_efi_HelloWorld/hello.debug differ diff --git a/GNU_efi_HelloWorld/hello.efi b/GNU_efi_HelloWorld/hello.efi index 59e1a03..90ef0e9 100755 Binary files a/GNU_efi_HelloWorld/hello.efi and b/GNU_efi_HelloWorld/hello.efi differ -- cgit v1.2.3-55-g7522