diff options
-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); |