From: David S. Miller Date: Tue, 6 May 2008 22:19:54 +0000 (-0700) Subject: sparc64: Fix initrd regression. X-Git-Tag: v2.6.26-rc2~53^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=d45100f7b69e3d9cd0cd5e956b6ac2c78d460d07;p=linux-2.6-omap-h63xx.git sparc64: Fix initrd regression. We die because we forget to convert initrd_start and initrd_end to virtual addresses. Reported by Mikael Pettersson Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c index db8e7fb5a3b..ec3e2c72302 100644 --- a/arch/sparc64/mm/init.c +++ b/arch/sparc64/mm/init.c @@ -771,6 +771,9 @@ static void __init find_ramdisk(unsigned long phys_base) initrd_end = ramdisk_image + sparc_ramdisk_size; lmb_reserve(initrd_start, initrd_end); + + initrd_start += PAGE_OFFSET; + initrd_end += PAGE_OFFSET; } #endif }