commit | b8496cced856ff411f1eb2e4eff20f5abe7080b0 | [log] [tgz] |
---|---|---|
author | Iwo Mergler <Iwo.Mergler@netcommwireless.com> | Sun Sep 09 20:16:58 2012 +0000 |
committer | Tom Rini <trini@ti.com> | Tue Sep 18 12:01:51 2012 -0700 |
tree | 94932a3b6f7fd756135de21745be9634d56229b3 | |
parent | 78b2de802f5f996d1e6d9383d1e05194351c429b [diff] |
memsize: Fix for bug in memory sizing code The original memory sizing code in get_ram_size clobbers the word at the base address, but forgets to restore it. Signed-off-by: Iwo Mergler <Iwo.Mergler@netcommwireless.com>
diff --git a/common/memsize.c b/common/memsize.c index 963e4f3..74cf075 100644 --- a/common/memsize.c +++ b/common/memsize.c
@@ -73,6 +73,7 @@ } return (0); } + *addr = save[i]; for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) { addr = base + cnt; /* pointer arith! */