Showing with 190 additions and 156 deletions.
  1. +15 −0 apu2_rel_notes.txt
  2. +3 −0 config.c
  3. +1 −1 config.h
  4. +2 −3 lib.c
  5. +154 −144 spd.c
  6. +14 −7 spd.h
  7. +1 −1 test.h
15 changes: 15 additions & 0 deletions apu2_rel_notes.txt
@@ -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
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 config.h
Expand Up @@ -38,7 +38,7 @@
/* This is normally off since it slows down testing. Change to a 1 */
/* to enable. */
#ifndef SERIAL_CONSOLE_DEFAULT
#define SERIAL_CONSOLE_DEFAULT 0
#define SERIAL_CONSOLE_DEFAULT 1
#endif

/* SERIAL_TTY - The default serial port to use. 0=ttyS0, 1=ttyS1, 2=ttyS2, 3=ttyS3 */
Expand Down
5 changes: 2 additions & 3 deletions lib.c
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