[U-Boot-Users] Re: unexpected behaviour !!!
Maximus
john.maximus at gmail.com
Tue Jan 31 14:34:16 CET 2006
Hi,
Thanks a lot - it took me 2 days to find it out!!!.
The address of a long int, struct should be aligned to address
which a multiple of 4.
Regards,
Jo
On 1/31/06, Peter Menzebach <pm-ub at mw-itcon.de> wrote:
> Maximus wrote:
> ...
> > void myrecieve_handler (uchar * pkt, unsigned dest, unsigned src, unsigned
> len)
> > {
> ...
> >
> > As, soon as seqnum = * (int *) pkt - is executed my board prints the
> message:
> >
>
> One idea without further investigation....
>
> if the pointer pkt is *not* on an 4 byte aligned address, you will get
> an alignment trap on arm.
>
> Best regards
> Peter
>
More information about the U-Boot
mailing list