summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRegia König2021-06-03 18:39:44 +0200
committerRegia König2021-06-03 18:39:44 +0200
commit71a8424c0bffe89d503d29eaa9fe0b14c9247add (patch)
tree01d376b9f9c5ceac3c460af3e535b874a366023b
parentSave actual state (diff)
downloadmemtest86-71a8424c0bffe89d503d29eaa9fe0b14c9247add.tar.gz
memtest86-71a8424c0bffe89d503d29eaa9fe0b14c9247add.tar.xz
memtest86-71a8424c0bffe89d503d29eaa9fe0b14c9247add.zip
Save last state. Information is printed BEFORE clear_screen()
-rw-r--r--efi_memtest/memtest86+/controller.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/efi_memtest/memtest86+/controller.c b/efi_memtest/memtest86+/controller.c
index c1cebc9..9e94428 100644
--- a/efi_memtest/memtest86+/controller.c
+++ b/efi_memtest/memtest86+/controller.c
@@ -134,7 +134,12 @@ void print_cpu_line(float dram_freq, float fsb_freq, int ram_type)
cprint(LINE_CPU, cur_col, "MHz (");
cur_col += 5;
- if (1)
+ if (1) {
+ char log[21] = "ram_type = ";
+ int length = 11;
+ int_to_charr(ram_type, log, &length);
+ print_log(log, length);
+ }
switch(ram_type)
{
@@ -151,7 +156,9 @@ void print_cpu_line(float dram_freq, float fsb_freq, int ram_type)
cprint(LINE_CPU, cur_col, "DDR3-");
cur_col += 5;
break;
- }
+ }
+
+ while(1);
if(dram_freq < 500)
{
@@ -4186,7 +4193,7 @@ static void print_memory_controller(void)
}
//int index = ctrl.index;
- int index = 127;
+ //int index = 127;
//controllers[index].poll_fsb();
poll_fsb_ivb();
//controllers[127].poll_fsb();