From a1d1f5274692225b03ed0821b07db31049511c06 Mon Sep 17 00:00:00 2001 From: Regina König Date: Fri, 30 Jul 2021 20:45:29 +0200 Subject: Outcomment code for debugging --- efi_memtest/memtest86+/efi/test.c | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/efi_memtest/memtest86+/efi/test.c b/efi_memtest/memtest86+/efi/test.c index badba42..8d4eca0 100644 --- a/efi_memtest/memtest86+/efi/test.c +++ b/efi_memtest/memtest86+/efi/test.c @@ -21,9 +21,9 @@ extern short logflag; extern short log_fine; extern short log_tst2; -// TODO REMOVE -int addr_written = 0; -ulong bad_addr = 103493632; +// TODO remove. Just for debugging +/*int addr_written = 0; +ulong bad_addr = 103493632;*/ extern struct cpu_ident cpu_id; extern volatile int mstr_cpu; @@ -326,20 +326,24 @@ STATIC void addr_tst2_init_segment(ulong* p, //Original C code replaced with hand tuned assembly code - int round = 1; + // TODO remove. Just for debugging + /*int round = 1;*/ for (; p <= pe; p++) { *p = (ulong)p; - if ((ulong)p == bad_addr) { + + // TODO remove. Just for debugging +/* if ((ulong)p == bad_addr) { addr_written = 1; ulong *px = (ulong *)bad_addr; char log[35] = "content of p = "; int length = 15; int_to_charr(*px, log, &length); print_log(log, length); - } + }*/ - if (addr_written && (*(ulong *) bad_addr != bad_addr)) { + // TODO remove. Just for debugging + /*if (addr_written && (*(ulong *) bad_addr != bad_addr)) { ulong *px = (ulong *)bad_addr; char log[35] = "content of p = "; int length = 15; @@ -360,7 +364,7 @@ STATIC void addr_tst2_init_segment(ulong* p, while(1); } - round++; + round++;*/ } /*asm __volatile__ ( @@ -513,13 +517,13 @@ void addr_tst2(int me) print_log("addr_tst2(): starting addr_tst2_init_segment", 44); } - - if (logflag) { +// TODO remove. Just for debugging +/* if (logflag) { char log[49] = "Address of global variable = "; int length = 29; int_to_charr((unsigned long) &addr_written, log, &length); print_log(log, length); - } + }*/ /* Write each address with its own address */ unsliced_foreach_segment(nullptr, me, addr_tst2_init_segment); -- cgit v1.2.3-55-g7522