Skip to content

Commit

Permalink
[PATCH] ppc64: Fix oops for !CONFIG_NUMA
Browse files Browse the repository at this point in the history
The SPARSEMEM EXTREME code (802f192) that
went in yesterday broke PPC64 for !CONFIG_NUMA.

The problem is that (free|reserve)_bootmem don't take a page number as their
first argument, they take an address. Ruh roh.

Booted on P5 LPAR, iSeries and G5.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Sep 9, 2005
1 parent a84195f commit 34b5233
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/ppc64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,12 +554,12 @@ void __init do_init_bootmem(void)
* present.
*/
for (i=0; i < lmb.memory.cnt; i++)
free_bootmem(lmb_start_pfn(&lmb.memory, i),
free_bootmem(lmb.memory.region[i].base,
lmb_size_bytes(&lmb.memory, i));

/* reserve the sections we're already using */
for (i=0; i < lmb.reserved.cnt; i++)
reserve_bootmem(lmb_start_pfn(&lmb.reserved, i),
reserve_bootmem(lmb.reserved.region[i].base,
lmb_size_bytes(&lmb.reserved, i));

for (i=0; i < lmb.memory.cnt; i++)
Expand Down

0 comments on commit 34b5233

Please sign in to comment.