doubtful this will work
This commit is contained in:
parent
c0811e687d
commit
bafbb3918a
1 changed files with 13 additions and 0 deletions
13
src/libthread/Linux-sparc64-asm.s
Normal file
13
src/libthread/Linux-sparc64-asm.s
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
.section ".text", #alloc, #execinstr
|
||||||
|
.align 8
|
||||||
|
.skip 16
|
||||||
|
.global _tas
|
||||||
|
! .type _tas,2
|
||||||
|
_tas:
|
||||||
|
or %g0,1,%o1
|
||||||
|
swap [%o0],%o1 ! o0 points to lock; key is first word
|
||||||
|
retl
|
||||||
|
mov %o1, %o0
|
||||||
|
|
||||||
|
.size _tas,(.-_tas)
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue