diff options
Diffstat (limited to 'arch/powerpc/boot/cuboot-83xx.c')
-rw-r--r-- | arch/powerpc/boot/cuboot-83xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/boot/cuboot-83xx.c b/arch/powerpc/boot/cuboot-83xx.c index 6cbc20afb4d8..9af554eea54b 100644 --- a/arch/powerpc/boot/cuboot-83xx.c +++ b/arch/powerpc/boot/cuboot-83xx.c | |||
@@ -57,7 +57,7 @@ void platform_init(unsigned long r3, unsigned long r4, unsigned long r5, | |||
57 | 57 | ||
58 | memcpy(&bd, (bd_t *)r3, sizeof(bd)); | 58 | memcpy(&bd, (bd_t *)r3, sizeof(bd)); |
59 | loader_info.initrd_addr = r4; | 59 | loader_info.initrd_addr = r4; |
60 | loader_info.initrd_size = r4 ? r5 : 0; | 60 | loader_info.initrd_size = r4 ? r5 - r4 : 0; |
61 | loader_info.cmdline = (char *)r6; | 61 | loader_info.cmdline = (char *)r6; |
62 | loader_info.cmdline_len = r7 - r6; | 62 | loader_info.cmdline_len = r7 - r6; |
63 | 63 | ||