[U-Boot] [RFC PATCH 09/20] sandbox: Add bootm support
Simon Glass
sjg at chromium.org
Fri Sep 23 17:55:41 CEST 2011
On Sat, Sep 17, 2011 at 5:16 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> 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.
OK have done this.
> -mike
>
More information about the U-Boot
mailing list