From: Tom Rini Date: Fri, 21 Sep 2012 15:14:05 +0000 (-0700) Subject: Revert "memsize: Fix for bug in memory sizing code" X-Git-Tag: v2012.10-rc1~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ab270d5df7ae7bf8d7b5d225ab1abb37297d77e;p=oweals%2Fu-boot.git 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 --- diff --git a/common/memsize.c b/common/memsize.c index 74cf075aff..963e4f35b1 100644 --- a/common/memsize.c +++ b/common/memsize.c @@ -73,7 +73,6 @@ long get_ram_size(long *base, long maxsize) } return (0); } - *addr = save[i]; for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) { addr = base + cnt; /* pointer arith! */