Skip to content

Commit

Permalink
Merge pull request #1 from pandrej/spd_and_display_refresh_issue
Browse files Browse the repository at this point in the history
Spd and display refresh issue
  • Loading branch information
pietrushnic committed May 11, 2016
2 parents 881e8ed + 102f443 commit a4efe01
Show file tree
Hide file tree
Showing 7 changed files with 190 additions and 156 deletions.
15 changes: 15 additions & 0 deletions apu2_rel_notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*******************************************************
PCENGINES memtest86plus Release Notes
*******************************************************

Release notes describing changes made to memtest86plus related to apu2 support

11 MAY 2016

* Macro (SPD_DISABLED) for disabling SPD related functionality was added spd.h
This macro should be used when building memtest for apu2 platform

* Fix for display refresh.
Refresh option label ('l') was added to aplication bottom menu and refresh procedure
was fixed so that full screen content is reprinted on refresh.

3 changes: 3 additions & 0 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include "test.h"
#include "screen_buffer.h"
#include "dmi.h"
#include "spd.h"

extern int bail, beepmode;
extern struct tseq tseq[];
Expand Down Expand Up @@ -46,7 +47,9 @@ void get_config(void)
cprint(POP_Y+6, POP_X+6, "(4) Core Selection");
cprint(POP_Y+7, POP_X+6, "(5) Refresh Screen");
cprint(POP_Y+8, POP_X+6, "(6) Display DMI Data");
#ifndef SPD_DISABLED
cprint(POP_Y+9, POP_X+6, "(7) Display SPD Data");
#endif
cprint(POP_Y+11, POP_X+6, "(0) Continue");

/* Wait for key release */
Expand Down
2 changes: 1 addition & 1 deletion init.c
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ void init(void)
cprint(LINE_RAM, COL_SPEC, " No detection, same reliability ");
} else {
find_controller();
//get_spd_spec();
get_spd_spec();
if (num_cpus <= 16 && !(v->fail_safe & 4)) { coretemp(); }
}

Expand Down
5 changes: 2 additions & 3 deletions lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -648,16 +648,15 @@ void check_input(void)
break;
case 0x26:
/* ^L/L - redraw the display */
clear_screen_buf();
tty_print_region(0, 0, 80, 100);
tty_print_screen();
break;
}
}
}

void footer(void)
{
cprint(24, 0, "(ESC)exit (c)configuration (SP)scroll_lock (CR)scroll_unlock");
cprint(24, 0, "(ESC)exit (c)configuration (SP)scroll_lock (CR)scroll_unlock (l)refresh");
if (slock) {
cprint(24, 74, "Locked");
} else {
Expand Down
Loading

0 comments on commit a4efe01

Please sign in to comment.