PR 1098: "struct ipovly" not packed.

Ralf Corsepius ralf.corsepius at rtems.org
Mon Jun 26 14:16:41 UTC 2006


On Mon, 2006-06-26 at 21:29 +0800, xr wrote:
> Hi:
> In fact, the bug exists in ARM based bsp.
> 
> I think it is something wrong with the gcc. 
> 
>  
> 
> The disassemble code for      ti->ti_next = ti->ti_prev = 0; is 
> 
> .text:2001688C                STR     R3, [R7,#4]
> 
> .text:20016890                STR     R3, [R7]
> 
> It seem OK, but ARM will rise a abort because the R7 is something like
> 0x200….0E, so the store instruction operate to a address that NOT word
> aligned.
This would indicate you are having a problem related to alignment,
elsewhere.

Also, why would "packing" the struct help?

Ralf

> 




More information about the users mailing list