Dear Balau,

In message <[email protected]> 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: [email protected]
Objects in mirror are closer than they appear.
_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to