From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Sat, 17 Sep 2011 20:16:09 -0400 Subject: [U-Boot] [RFC PATCH 09/20] sandbox: Add bootm support In-Reply-To: <1316278139-28635-10-git-send-email-sjg@chromium.org> References: <1316278139-28635-2-git-send-email-sjg@chromium.org> <1316278139-28635-10-git-send-email-sjg@chromium.org> Message-ID: <201109172016.11693.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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