aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-04-29 21:26:22 +0200
committerH. Nikolaus Schaller <hns@goldelico.com>2012-04-29 21:26:22 +0200
commit585a760e0ecee7bf62fb162c4d0380d2879cbdba (patch)
tree777aa5c2750a6d24b12c6741cfb8ed34ece02c5c /common
parentdb274137c95e1683581032570562e459c616d9e4 (diff)
downloadbootable_bootloader_goldelico_gta04_x-loader-585a760e0ecee7bf62fb162c4d0380d2879cbdba.zip
bootable_bootloader_goldelico_gta04_x-loader-585a760e0ecee7bf62fb162c4d0380d2879cbdba.tar.gz
bootable_bootloader_goldelico_gta04_x-loader-585a760e0ecee7bf62fb162c4d0380d2879cbdba.tar.bz2
removed code for other platforms
Diffstat (limited to 'common')
-rw-r--r--common/cmd_monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_monitor.c b/common/cmd_monitor.c
index 69be750..4e9c29b 100644
--- a/common/cmd_monitor.c
+++ b/common/cmd_monitor.c
@@ -261,14 +261,14 @@ int lowlevel_monitor (void)
else if(strcmp(argv[0], "rt") == 0) { // rt
unsigned char val;
printf("filling\n");
- for(addr=(char *) CFG_LOADADDR; addr < 512*1024*1024+(char *) 0x80000000; addr++) {
+ for(addr=(char *) CFG_LOADADDR; addr < 256*1024*1024+(char *) 0x80000000; addr++) {
val=(unsigned int) addr + (((unsigned int) addr) >> 8) + (((unsigned int) addr) >> 16) + (((unsigned int) addr) >> 24); // build from address
if((((unsigned int)addr) & 0xfffff) == 0) // approx. 1 MByte per second
printf("%08x: %02x\n", addr, val);
*addr=val; // fill ram with prime pattern
}
printf("\nchecking\n");
- for(addr=(char *) CFG_LOADADDR; addr < 512*1024*1024+(char *) 0x80000000; addr++) {
+ for(addr=(char *) CFG_LOADADDR; addr < 256*1024*1024+(char *) 0x80000000; addr++) {
unsigned char r=*addr; // read back
val=(unsigned int) addr + (((unsigned int) addr) >> 8) + (((unsigned int) addr) >> 16) + (((unsigned int) addr) >> 24);
if((((unsigned int)addr) & 0xfffff) == 0)