Commit b8496cced856ff411f1eb2e4eff20f5abe7080b0

Authored by Iwo Mergler
Committed by Tom Rini
1 parent 78b2de802f

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -73,6 +73,7 @@
73 73 }
74 74 return (0);
75 75 }
  76 + *addr = save[i];
76 77  
77 78 for (cnt = 1; cnt < maxsize / sizeof (long); cnt <<= 1) {
78 79 addr = base + cnt; /* pointer arith! */