Update of /cvsroot/blob/blob/src/blob
In directory sc8-pr-cvs1:/tmp/cvs-serv1976/src/blob
Modified Files:
memory.c
Log Message:
allow probing of ram at 0x0
Index: memory.c
===================================================================
RCS file: /cvsroot/blob/blob/src/blob/memory.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- memory.c 13 Feb 2002 00:09:51 -0000 1.5
+++ memory.c 9 Dec 2003 03:28:31 -0000 1.6
@@ -56,16 +56,16 @@
for(i = 0; i < NUM_MEM_AREAS; i++)
memory_map[i].used = 0;
- /* first write a 0 to all memory locations */
+ /* first write a magic value to all memory locations */
for(addr = MEMORY_START; addr < MEMORY_END; addr += TEST_BLOCK_SIZE)
- * (u32 *)addr = 0;
+ * (u32 *)addr = 0xabadcafe;
/* scan memory in blocks */
i = 0;
for(addr = MEMORY_START; addr < MEMORY_END; addr += TEST_BLOCK_SIZE) {
if(testram(addr) == 0) {
/* yes, memory */
- if(* (u32 *)addr != 0) { /* alias? */
+ if(* (u32 *)addr != 0xabadcafe) { /* alias? */
dprintf("detected alias at 0x%08x, "
"aliased from 0x%08x\n",
addr, * (u32 *)addr);
|