return (void *) virt;
}
-static void *of_try_claim(u32 size)
+static void *of_try_claim(unsigned long size)
{
unsigned long addr = 0;
prom = (int (*)(void *))promptr;
loader_info.promptr = promptr;
- loader_info.initrd_addr = a1;
- loader_info.initrd_size = a2;
+ if (a1 && a2 && a2 != 0xdeadbeef) {
+ loader_info.initrd_addr = a1;
+ loader_info.initrd_size = a2;
+ }
}