From mboxrd@z Thu Jan 1 00:00:00 1970 From: ratbert.chuang at gmail.com Date: Tue, 25 May 2010 15:04:53 +0800 Subject: [U-Boot] [PATCH] get_ram_size: memory content of base address was not restored Message-ID: <1274771093-29677-1-git-send-email-ratbert.chuang@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Po-Yu Chuang Signed-off-by: Po-Yu Chuang --- common/memsize.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/common/memsize.c b/common/memsize.c index 6c275c9..99469ab 100644 --- a/common/memsize.c +++ b/common/memsize.c @@ -74,6 +74,7 @@ long get_ram_size(volatile long *base, long maxsize) return (0); } + *addr = save[i]; for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) { addr = base + cnt; /* pointer arith! */ val = *addr; -- 1.6.0.4