[PATCH] U-boot passes the initrd as start/end, not start/size.

Stephen Rothwell sfr at canb.auug.org.au
Sat May 12 13:45:29 EST 2007


On Fri, 11 May 2007 12:52:03 -0500 Scott Wood <scottwood at freescale.com> wrote:
>
>  	loader_info.initrd_addr = r4;
> -	loader_info.initrd_size = r4 ? r5 : 0;
> +	loader_info.initrd_size = r4 ? r5 - r4 : 0;

So do we need a "+ 1" here, or does r5 contain the address past the initrd?

>  	loader_info.initrd_addr = r4;
> -	loader_info.initrd_size = r4 ? r5 : 0;
> +	loader_info.initrd_size = r4 ? r5 - r4 : 0;

And here?

--
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20070512/6c2f3377/attachment.pgp>


More information about the Linuxppc-dev mailing list