diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/boot/of.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/boot/of.c b/arch/powerpc/boot/of.c index 2cec5c17fb6..8fb42b63ec5 100644 --- a/arch/powerpc/boot/of.c +++ b/arch/powerpc/boot/of.c @@ -282,6 +282,8 @@ void platform_init(unsigned long a1, unsigned long a2, void *promptr) 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; + } } |