projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fb29f3
)
Revert "memsize: Fix for bug in memory sizing code"
author
Tom Rini
<trini@ti.com>
Fri, 21 Sep 2012 15:14:05 +0000
(08:14 -0700)
committer
Tom Rini
<trini@ti.com>
Fri, 21 Sep 2012 15:14:05 +0000
(08:14 -0700)
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>
common/memsize.c
patch
|
blob
|
history
diff --git
a/common/memsize.c
b/common/memsize.c
index 74cf075aff773aeeb2288c2db50899f10091b4ea..963e4f35b18059c3d79b30c04ab595281c37273e 100644
(file)
--- 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! */