summaryrefslogtreecommitdiffstats
path: root/efi_memtest
diff options
context:
space:
mode:
authorRegia König2022-03-02 15:45:33 +0100
committerRegia König2022-03-02 15:45:33 +0100
commit353878f4f5a17a75ba8fa612cfd7043aad9b3344 (patch)
tree07b00b44d75afefac682cea5f691a384e11bcdf6 /efi_memtest
parentAdd small section for debugging with gdb (in addr_tst2) (diff)
downloadmemtest86-353878f4f5a17a75ba8fa612cfd7043aad9b3344.tar.gz
memtest86-353878f4f5a17a75ba8fa612cfd7043aad9b3344.tar.xz
memtest86-353878f4f5a17a75ba8fa612cfd7043aad9b3344.zip
Add stuff
Diffstat (limited to 'efi_memtest')
-rw-r--r--efi_memtest/Makefile7
-rw-r--r--efi_memtest/memtest86+/efi/test.c6
2 files changed, 7 insertions, 6 deletions
diff --git a/efi_memtest/Makefile b/efi_memtest/Makefile
index 1c9b8e1..4574cfa 100644
--- a/efi_memtest/Makefile
+++ b/efi_memtest/Makefile
@@ -8,7 +8,9 @@ CFLAGS += -fno-builtin
# EFI requires -fshort-wchar
CFLAGS += -fshort-wchar
CFLAGS += -fno-common
-CFLAGS += -fno-strict-aliasing -g
+CFLAGS += -fno-strict-aliasing
+# Create debugging symbols
+CFLAGS += -g
# EFI uses Microsoft ABI so no red zone is defined
CFLAGS += -mno-red-zone
@@ -24,9 +26,10 @@ CFLAGS += -maccumulate-outgoing-args
CFLAGS += -fno-asynchronous-unwind-tables
CFLAGS += -nostdlib
CFLAGS += -mcmodel=small
+
#CFLAGS += -fno-stack-protector e
-M64=-m64
+M64=-m64 -march=x86-64
M32=-m32
diff --git a/efi_memtest/memtest86+/efi/test.c b/efi_memtest/memtest86+/efi/test.c
index 114ec5d..964399d 100644
--- a/efi_memtest/memtest86+/efi/test.c
+++ b/efi_memtest/memtest86+/efi/test.c
@@ -450,7 +450,7 @@ STATIC void addr_tst2_check_segment(ulong* p,
for (; p <= pe; p++) {
if((bad = *p) != (ulong)p) {
- while(1);
+ //while(1);
ad_err2((ulong *)p, bad);
}
}
@@ -564,9 +564,7 @@ void addr_tst2(int me)
if (!efi_activate) { // TODO this part can be removed after the bug is fixed
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *Console = gST->ConOut;
- CHAR16 * output_text = L"Testtext";
- Console->SetCursorPosition(Console, 0, 0);
- Console->OutputString(Console, output_text);
+ Console->OutputString(Console, L"Testtext");
}
/* Each address should have its own address */