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
This commit is contained in:
John David Anglin 2004-08-20 16:08:49 +00:00 committed by John David Anglin
parent 6f4234e9d7
commit dd8b67a1a8
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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:

View File

@ -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. */