[U-Boot] [RFC PATCH 09/20] sandbox: Add bootm support

Mike Frysinger vapier at gentoo.org
Sun Sep 18 02:16:09 CEST 2011


On Saturday, September 17, 2011 12:48:48 Simon Glass wrote:
> --- a/common/cmd_bootm.c
> +++ b/common/cmd_bootm.c
>
> +#if BITS_PER_LONG == 32
>  	int   (*appl)(int, char * const []);
> +#endif
> 
> +#if BITS_PER_LONG == 32
>  	appl = (int (*)(int, char * const []))ntohl(images.ep);
>  	(*appl)(argc-1, &argv[1]);
> -
> +#endif

why do you need this ?  if it's because you're converting from a 32bit int to 
a pointer, then you could address this by putting an (unsigned long) cast 
between the pointer and the ntohl() call.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110917/9b8c67d8/attachment.pgp 


More information about the U-Boot mailing list