diff options
author | Iwo Mergler <Iwo.Mergler@netcommwireless.com> | 2012-09-09 20:16:58 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-18 12:01:51 -0700 |
commit | b8496cced856ff411f1eb2e4eff20f5abe7080b0 (patch) | |
tree | 94932a3b6f7fd756135de21745be9634d56229b3 | |
parent | 78b2de802f5f996d1e6d9383d1e05194351c429b (diff) | |
download | u-boot-imx-b8496cced856ff411f1eb2e4eff20f5abe7080b0.zip u-boot-imx-b8496cced856ff411f1eb2e4eff20f5abe7080b0.tar.gz u-boot-imx-b8496cced856ff411f1eb2e4eff20f5abe7080b0.tar.bz2 |
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>
-rw-r--r-- | common/memsize.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ 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! */ |