Sign in
plan9port
/
plan9
/
d0e0701913f3aede1fcb256f3d1e9c60c9af6edf
/
.
/
src
/
libthread
/
Linux-power-asm.s
blob: d6e21c157b50a515a08e33e31a949dafa41e08a2 [
file
] [
log
] [
blame
]
.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
2
f
stwcx.
%r5, %
r0
,
%r4
bne
-
1
b
2
:
sync
blr