On 01/20/2015 02:10 PM, Andrew Waterman wrote:
> 2015-01-09 Andrew Waterman
>
> * fop_n.c (libat_fetch_op): Align address to word boundary.
> (libat_op_fetch): Likewise.
Thanks. Applied to 4.8, 4.9, and mainline branches.
r~
My original patch only fixed libat_fetch_op; this one applies the same
fix to libat_op_fetch, as well.
When using word-wide CAS to emulate atomic fetch-and-op, addresses should
be word-aligned to avoid exceptions on some targets.
The problem manifested in a new port I'm working on as a failure in