
24 Mar
2006
24 Mar
'06
4:24 p.m.
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! */