summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-05-15 10:10:33 +0400
committerDavid S. Miller <davem@davemloft.net>2008-05-17 00:34:35 +0400
commit7047901ec7d6eca97cf66f54b8a4197bb0754f40 (patch)
treebe3a09bf6d9943bbbe8ecee55bcd4d3de55a228c
parentf26a3988917913b3d11b2bd741601a2c64ab9204 (diff)
downloadlinux-7047901ec7d6eca97cf66f54b8a4197bb0754f40.tar.xz
sparc64: Fix lmb_reserve() args in find_ramdisk().
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>
-rw-r--r--arch/sparc64/mm/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index a9828d748e2c..3c7b9471eafb 100644
--- a/arch/sparc64/mm/init.c
+++ b/arch/sparc64/mm/init.c
@@ -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;