diff options
author | Regia König | 2022-02-28 18:07:18 +0100 |
---|---|---|
committer | Regia König | 2022-02-28 18:07:18 +0100 |
commit | c9727a6e8eeca41e3f8d6ce3ec805124750e93cd (patch) | |
tree | d82826280e0786e503d65cb1b6c9b1fe8de989ee /efi_memtest | |
parent | Introduce new flag efi_activate to turn all error causing functions off (diff) | |
download | memtest86-c9727a6e8eeca41e3f8d6ce3ec805124750e93cd.tar.gz memtest86-c9727a6e8eeca41e3f8d6ce3ec805124750e93cd.tar.xz memtest86-c9727a6e8eeca41e3f8d6ce3ec805124750e93cd.zip |
Add small section for debugging with gdb (in addr_tst2)
Diffstat (limited to 'efi_memtest')
-rw-r--r-- | efi_memtest/memtest86+/efi/test.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/efi_memtest/memtest86+/efi/test.c b/efi_memtest/memtest86+/efi/test.c index 65ae8c3..114ec5d 100644 --- a/efi_memtest/memtest86+/efi/test.c +++ b/efi_memtest/memtest86+/efi/test.c @@ -9,6 +9,13 @@ * Thanks to Passmark for calculate_chunk() and various comments ! */ +// TODO remove this after bug fixed +#include "Uefi.h" +#include "Library/UefiLib.h" +extern EFI_SYSTEM_TABLE *gST; +// TODO end + + #include "test.h" #include "config.h" #include "stdint.h" @@ -22,6 +29,8 @@ #include "io.h" #include "logger.h" + + extern short logflag; extern short log_fine; extern short log_tst2; @@ -553,6 +562,13 @@ void addr_tst2(int me) print_log(log, length); }*/ + 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); + } + /* Each address should have its own address */ unsliced_foreach_segment(nullptr, me, addr_tst2_check_segment); |