[U-Boot-Users] struct NS16550 {...} __attribute__ ((packed)) at ns16550.h

Wolfgang Denk wd at denx.de
Mon Apr 25 21:43:37 CEST 2005


In message <426D0A4C.5000105 at intracom.gr> you wrote:
>
> Not on ARM it does not.

Yes, I know? Why did you not quote this part of my message, too?

> ARM (silently) does the wrong thing i.e. masks out the lower 2 bits.
> So gcc on ARM generates byte load/stores.

...which is broken, especially when there is no need to do this since
the fields are properly aligned.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Monday is an awful way to spend one seventh of your life.




More information about the U-Boot mailing list