plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 9f7a3e020e851a217790be84c177f0e8a4347d9b
parent ad9e684811638b69d3800b011ee5fafb448992a3
Author: rsc <devnull@localhost>
Date:   Mon, 22 Aug 2005 16:56:28 +0000

new

Diffstat:
Asrc/libthread/Linux-power-asm.s | 16++++++++++++++++
1 file changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/libthread/Linux-power-asm.s b/src/libthread/Linux-power-asm.s @@ -0,0 +1,16 @@ + .globl _tas +_tas: + li %r0, 0 + mr %r4, %r3 + lis %r5, 0xcafe + ori %r5, %r5, 0xbabe +1: + lwarx %r3, %r0, %r4 + cmpwi %r3, 0 + bne 2f + stwcx. %r5, %r0, %r4 + bne- 1b +2: + sync + blr +