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

Wolfgang Denk wd at denx.de
Mon Apr 25 22:59:31 CEST 2005


Dear Arthur,

in message <003501c549d3$7d67aa00$1780a8c0 at art> you wrote:
> 
> There are discussions on this on the GCC mailing list going back a ways; a
> notable one (that mentions m68k as another platform that generates byte
> accesses besides ARM) is at http://gcc.gnu.org/ml/gcc/1997-10/msg00063.html
> while a more recent bug report hinting at this fact is at
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12200

Thanks for digging this out.

So the  real  fix  for  this  problem  should  be  to  use  a  proper
"__attribute__((aligned(?)))" where struct NS16550 is instantiated.

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
I have a theory that it's impossible to prove anything, but  I  can't
prove it.




More information about the U-Boot mailing list