|
From: Russ D. <ru...@us...> - 2003-12-09 23:20:28
|
Update of /cvsroot/blob/blob/src/blob
In directory sc8-pr-cvs1:/tmp/cvs-serv13237
Modified Files:
memory.c
Log Message:
slightly more readable, and better compiler output (according to erikm)
Index: memory.c
===================================================================
RCS file: /cvsroot/blob/blob/src/blob/memory.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- memory.c 9 Dec 2003 03:28:31 -0000 1.6
+++ memory.c 9 Dec 2003 23:20:24 -0000 1.7
@@ -43,6 +43,7 @@
memory_area_t memory_map[NUM_MEM_AREAS];
+static const u32 mem_magic = 0xabadcafe;
@@ -58,14 +59,14 @@
/* first write a magic value to all memory locations */
for(addr = MEMORY_START; addr < MEMORY_END; addr += TEST_BLOCK_SIZE)
- * (u32 *)addr = 0xabadcafe;
+ * (u32 *)addr = mem_magic;
/* 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 != 0xabadcafe) { /* alias? */
+ if(* (u32 *)addr != mem_magic) { /* alias? */
dprintf("detected alias at 0x%08x, "
"aliased from 0x%08x\n",
addr, * (u32 *)addr);
|