Skip to content
Snippets Groups Projects
Commit 3ab270d5 authored by Tom Rini's avatar Tom Rini
Browse files

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 b8496cce.

Signed-off-by: default avatarTom Rini <trini@ti.com>
parent 5fb29f3c
No related branches found
No related tags found
No related merge requests found
......@@ -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! */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment