summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-05-07 00:19:54 +0200
committerDavid S. Miller <davem@davemloft.net>2008-05-07 00:19:54 +0200
commitd45100f7b69e3d9cd0cd5e956b6ac2c78d460d07 (patch)
tree9bf891a3426b68c7deb251f0488881be1b33ad63
parentusb: Sparc build fix, make USB_ISP1760_OF depend on PPC_OF (diff)
downloadlinux-d45100f7b69e3d9cd0cd5e956b6ac2c78d460d07.tar.xz
linux-d45100f7b69e3d9cd0cd5e956b6ac2c78d460d07.zip
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 <davem@davemloft.net>
-rw-r--r--arch/sparc64/mm/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc64/mm/init.c b/arch/sparc64/mm/init.c
index db8e7fb5a3b9..ec3e2c72302a 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
}