Update Coreinfo to use TAG_FORWARD in tables.
Update the ramdump function cursor functions and make the address hex instead of decimal Signed-off-by: Myles Watson <mylesgw@gmail.com> Acked-by: Ronald G. Minnich <rminnich@gmail.com> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4563 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
bab2bef484
commit
44163f7f71
|
@ -203,6 +203,9 @@ static int parse_header(void *addr, int len)
|
||||||
struct cb_record *rec = (struct cb_record *)ptr;
|
struct cb_record *rec = (struct cb_record *)ptr;
|
||||||
|
|
||||||
switch (rec->tag) {
|
switch (rec->tag) {
|
||||||
|
case CB_TAG_FORWARD:
|
||||||
|
return parse_header((void *)(unsigned long)((struct cb_forward *)rec)->forward, 1);
|
||||||
|
break;
|
||||||
case CB_TAG_MEMORY:
|
case CB_TAG_MEMORY:
|
||||||
parse_memory(ptr);
|
parse_memory(ptr);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -34,7 +34,7 @@ static void dump_ram(WINDOW *win, uint32_t addr, int row, int col)
|
||||||
int i, x = 0, y = 0, count = 0;
|
int i, x = 0, y = 0, count = 0;
|
||||||
volatile uint8_t *ptr = (void *)(addr);
|
volatile uint8_t *ptr = (void *)(addr);
|
||||||
|
|
||||||
mvwprintw(win, 0, col + 54, "RAM address: %10d", addr);
|
mvwprintw(win, 0, col + 54, "RAM address: %10x", addr);
|
||||||
|
|
||||||
/* Dump 256 bytes of RAM. */
|
/* Dump 256 bytes of RAM. */
|
||||||
for (i = 1; i < 257; i++) {
|
for (i = 1; i < 257; i++) {
|
||||||
|
@ -68,23 +68,21 @@ static int ramdump_module_handle(int key)
|
||||||
{
|
{
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case KEY_DOWN:
|
case KEY_DOWN:
|
||||||
if (cursor == cursor_max)
|
|
||||||
return 0;
|
|
||||||
cursor++;
|
cursor++;
|
||||||
break;
|
break;
|
||||||
case KEY_UP:
|
case KEY_UP:
|
||||||
if (cursor == 0)
|
|
||||||
return 0;
|
|
||||||
cursor--;
|
cursor--;
|
||||||
break;
|
break;
|
||||||
case KEY_NPAGE:
|
case KEY_RIGHT:
|
||||||
if (cursor == cursor_max)
|
cursor += 256;
|
||||||
return 0;
|
break;
|
||||||
cursor += 4096; /* Jump in 1MB steps. */
|
case KEY_LEFT:
|
||||||
|
cursor -= 256;
|
||||||
break;
|
break;
|
||||||
case KEY_PPAGE:
|
case KEY_PPAGE:
|
||||||
if (cursor == 0)
|
cursor += 4096; /* Jump in 1MB steps. */
|
||||||
return 0;
|
break;
|
||||||
|
case KEY_NPAGE:
|
||||||
cursor -= 4096; /* Jump in 1MB steps. */
|
cursor -= 4096; /* Jump in 1MB steps. */
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue