Skip to content

Commit

Permalink
sparc64: Fix lmb_reserve() args in find_ramdisk().
Browse files Browse the repository at this point in the history
This fixes the missing ram regression reported by
Mikael Pettersson <mikpe@it.uu.se>, much thanks for
all of this help in diagnosing this.

The second argument to lmb_reserve() is a size,
not an end address bounds.

Tested-by: Mikael Pettersson <mikpe@it.uu.se>

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 16, 2008
1 parent f26a398 commit 7047901
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sparc64/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ static void __init find_ramdisk(unsigned long phys_base)
initrd_start = ramdisk_image;
initrd_end = ramdisk_image + sparc_ramdisk_size;

lmb_reserve(initrd_start, initrd_end);
lmb_reserve(initrd_start, sparc_ramdisk_size);

initrd_start += PAGE_OFFSET;
initrd_end += PAGE_OFFSET;
Expand Down

0 comments on commit 7047901

Please sign in to comment.