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>
This commit is contained in:
parent
78b2de802f
commit
b8496cced8
|
@ -73,6 +73,7 @@ long get_ram_size(long *base, long maxsize)
|
||||||
}
|
}
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
*addr = save[i];
|
||||||
|
|
||||||
for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
|
for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
|
||||||
addr = base + cnt; /* pointer arith! */
|
addr = base + cnt; /* pointer arith! */
|
||||||
|
|
Loading…
Reference in New Issue