Thread (8 messages) 8 messages, 4 authors, 2015-02-27

[RFC PATCH] ARM64: cmpxchg.h: Clear the exclusive access bit on fail

From: mark.rutland@arm.com (Mark Rutland)
Date: 2015-02-27 19:08:32
Also in: lkml

On Fri, Feb 27, 2015 at 06:44:19PM +0000, Pranith Kumar wrote:
On Fri, Feb 27, 2015 at 1:33 PM, Catalin Marinas
[off-list ref] wrote:
quoted
It's either badly formatted or I don't get it. Are the "stxr x1" and
"stxr x7" happening on the same CPU (P0)? If yes, that's badly written
code, not even architecturally compliant (you are not allowed other
memory accesses between ldxr and stxr).
OK. Is that the same case with ldaxr (acquire) and stlxr (release)?
AFAIK, memory accesses between acquire and release exclusive
operations are allowed.
The restriction on memory accesses in the middle of a load-exclusive
store-exclusive sequence applies to all the load/store-exclusive
variants, including ldaxr and stlxr.

Thanks,
Mark.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help