URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
Compare Revisions
- This comparison shows the changes necessary to convert path
/openrisc/trunk/bootloaders/orpmon/cmds
- from Rev 464 to Rev 467
- ↔ Reverse comparison
Rev 464 → Rev 467
/global.c
69,9 → 69,10
return -1; |
} |
|
#if HELP_ENABLED |
|
int globals_cmd(int argc, char *argv[]) |
{ |
#if HELP_ENABLED |
const char *erase_method_desc[] = |
{ "do not erase", "fully", "as needed" }; |
if (argc) |
84,10 → 85,13
printf("srv_ip = %08lx\n", global.srv_ip); |
printf("erase_method = %i (%s)\n", (int)global.erase_method, |
erase_method_desc[global.erase_method]); |
#endif /* HELP_ENABLED */ |
return 0; |
|
} |
#endif /* HELP_ENABLED */ |
|
|
|
void module_global_init(void) |
{ |
register_command("src_addr", "<value>", |
/memory.c
1,7 → 1,6
#include "common.h" |
#include "support.h" |
#include "spr-defs.h" |
#include "spincursor.h" |
|
void show_mem(int start, int stop) |
{ |
24,7 → 23,7
unsigned long err_addr = 0; |
unsigned long err_no = 0; |
|
unsigned long stack_top = (unsigned long) &_src_addr; |
unsigned long stack_top = (unsigned long) &_stack_top; |
|
if (start_addr < stack_top) |
{ |
133,21 → 132,16
unsigned long err_no = 0; |
int b; |
printf("\nSetting memory contents to all 1'b1 "); |
//enable_spincursor(); |
for (addr = start_addr; addr <= stop_addr; addr += 1) |
REG8(addr) = 0xff; |
//disable_spincursor(); |
printf("\rVerifying memory contents all set to 1'b1: "); |
//enable_spincursor(); |
/* Verify */ |
for (addr = start_addr; addr <= stop_addr; addr += 1) { |
if (REG8(addr) != 0xff) { |
err_no++; |
err_addr = addr; |
//disable_spincursor(); |
printf("\n%04lx times failed. Last at location %08lx ", |
err_no, err_addr); |
//enable_spincursor(); |
} |
} |
|