[U-Boot-Users] get_ram_size bug and ask for comments

Matthieu CASTET matthieu.castet at sagem.com
Fri Mar 24 16:24:10 CET 2006


Hi,

the current get_ram_size algorithm doesn't restore the first word of the 
memory.
Something like [1] should be done to prevent that.

Also is that possible to get some comment s on the algorithm ?

Why save2 is never used to restore values ?

Thanks

Matthieu

[1]
--- ../../cvs/uboot/common/memsize.c    2006-03-01 10:37:06.000000000 
+0100
+++ memsize.c   2006-03-24 14:41:07.116217000 +0100
@@ -60,6 +60,7 @@
                }
                return (0);
        }
+       *addr = save[i];
 
        for (cnt = 1024; cnt < maxsize / sizeof (long); cnt <<= 1) {
                addr = base + cnt;      /* pointer arith! */




More information about the U-Boot mailing list