sparc64: Fix initrd regression.
authorDavid S. Miller <davem@davemloft.net>
Tue, 6 May 2008 22:19:54 +0000 (15:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 May 2008 22:19:54 +0000 (15:19 -0700)
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>
arch/sparc64/mm/init.c

index db8e7fb5a3b993d9db844fc6c56b5a7f3a3b549c..ec3e2c72302a78a66c5da100c892f4328117a7e3 100644 (file)
@@ -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
 }