提交 b8496cce 编写于 作者: I Iwo Mergler 提交者: Tom Rini

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: NIwo Mergler <Iwo.Mergler@netcommwireless.com>
上级 78b2de80
......@@ -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! */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册