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

Woojung.Huh at smsc.com Woojung.Huh at smsc.com
Fri Apr 22 16:57:35 CEST 2005


Hi All,

I'm newbie to u-boot.

We are using u-boot for proprietary ARM board with NS16550 compatible serial controller.
It is configured as 4bytes access to serial controller, so set CFG_NS16550_REG_SIZE to 4.
But, because of "__attribute__ ((packed))" of struct NS16550, all register accesses to NS16550 are generated to byte
access (LDRB, STRB in ARM).

I think it should NOT have __attribute__ ((packed)) if NS16550 is configured as 4bytes access.
Am I missed something?

Thanks,
Woojung







More information about the U-Boot mailing list