mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-13 05:55:02 -04:00
Revert "memsize: Fix for bug in memory sizing code"
After further investigation this change is not correct and results in get_ram_size returning incorrectly large values. Reported first by Gerlando Falauto. This reverts commit b8496cced856ff411f1eb2e4eff20f5abe7080b0. Signed-off-by: Tom Rini <trini@ti.com>
This commit is contained in:
parent
5fb29f3c48
commit
3ab270d5df
@ -73,7 +73,6 @@ long get_ram_size(long *base, long maxsize)
|
|||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
*addr = save[i];
|
|
||||||
|
|
||||||
for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
|
for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
|
||||||
addr = base + cnt; /* pointer arith! */
|
addr = base + cnt; /* pointer arith! */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user