Commit dd8b67a1 by John David Anglin Committed by John David Anglin

atomicity.h (__exchange_and_add, [...]): Add memory barrier to locking asm.

	* cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
	barrier to locking asm.

From-SVN: r86328
parent 6f4234e9
2004-08-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* cpu/hppa/atomicity.h (__exchange_and_add, __atomic_add): Add memory
barrier to locking asm.
2004-08-20 Paolo Carlini <pcarlini@suse.de>
* include/c_std/cmath.tcc (__cmath_power): Revert previous commit:
......
......@@ -61,7 +61,8 @@ namespace __gnu_cxx
"nop\n\t"
"b,n .-20"
: "=&r" (tmp)
: "r" (&lock));
: "r" (&lock)
: "memory");
result = *__mem;
*__mem = result + __val;
......@@ -85,7 +86,8 @@ namespace __gnu_cxx
"nop\n\t"
"b,n .-20"
: "=&r" (tmp)
: "r" (&lock));
: "r" (&lock)
: "memory");
*__mem += __val;
/* Reset lock with PA 2.0 "ordered" store. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment