|
@@ -635,10 +635,11 @@ asmlinkage void __init start_kernel(void)
|
|
|
|
|
|
#ifdef CONFIG_BLK_DEV_INITRD
|
|
#ifdef CONFIG_BLK_DEV_INITRD
|
|
if (initrd_start && !initrd_below_start_ok &&
|
|
if (initrd_start && !initrd_below_start_ok &&
|
|
- page_to_pfn(virt_to_page(initrd_start)) < min_low_pfn) {
|
|
|
|
|
|
+ page_to_pfn(virt_to_page((void *)initrd_start)) < min_low_pfn) {
|
|
printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - "
|
|
printk(KERN_CRIT "initrd overwritten (0x%08lx < 0x%08lx) - "
|
|
"disabling it.\n",
|
|
"disabling it.\n",
|
|
- page_to_pfn(virt_to_page(initrd_start)), min_low_pfn);
|
|
|
|
|
|
+ page_to_pfn(virt_to_page((void *)initrd_start)),
|
|
|
|
+ min_low_pfn);
|
|
initrd_start = 0;
|
|
initrd_start = 0;
|
|
}
|
|
}
|
|
#endif
|
|
#endif
|