[U-Boot] packed attribute problem
Wolfgang Denk
wd at denx.de
Mon Oct 4 14:58:44 CEST 2010
Dear Balau,
In message <AANLkTik6FcN-n+4iG0VV67T7rvSaTB16=27QyA8D6=7z at mail.gmail.com> you wrote:
>
> The compiler (4.4.1) generates the expected 32bit store instruction when using:
>
> struct p {
> int n;
> } __attribute__ ((packed, aligned(4)));
Confirmed. Thanks for pointing this out.
> In case of hardware registers, I have yet to see a case where this is not true.
Indeed, sounds as if this was a solution in case the "packed" should
really be needed - which I seriously doubt.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Objects in mirror are closer than they appear.
More information about the U-Boot
mailing list