sparc64: Fix lmb_reserve() args in find_ramdisk().
authorDavid S. Miller <davem@davemloft.net>
Thu, 15 May 2008 06:10:33 +0000 (23:10 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 May 2008 20:34:35 +0000 (13:34 -0700)
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>
arch/sparc64/mm/init.c

index a9828d748e2c1e9db4772497e63465ed82e94fe6..3c7b9471eafb508f80cd007a56ee4b196f171e9a 100644 (file)
@@ -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;