summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRegina König2021-07-30 20:45:29 +0200
committerRegina König2021-07-30 20:45:29 +0200
commita1d1f5274692225b03ed0821b07db31049511c06 (patch)
tree62cd86622b40586bc22b68856ec303b0c42b7056
parentCommit old logs (diff)
downloadmemtest86-a1d1f5274692225b03ed0821b07db31049511c06.tar.gz
memtest86-a1d1f5274692225b03ed0821b07db31049511c06.tar.xz
memtest86-a1d1f5274692225b03ed0821b07db31049511c06.zip
Outcomment code for debugging
-rw-r--r--efi_memtest/memtest86+/efi/test.c26
1 files 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);