libthread: rm OpenBSD tas implementations
OpenBSD is using pthreads now, so no need for tas.
This commit is contained in:
parent
41b3e8b989
commit
37e7d24c0c
2 changed files with 1 additions and 23 deletions
|
|
@ -1,10 +1,3 @@
|
|||
.globl _tas
|
||||
_tas:
|
||||
movl $0xCAFEBABE, %eax
|
||||
movl 4(%esp), %ecx
|
||||
xchgl %eax, 0(%ecx)
|
||||
ret
|
||||
|
||||
.globl getmcontext
|
||||
getmcontext:
|
||||
movl 4(%esp), %eax
|
||||
|
|
|
|||
|
|
@ -1,18 +1,3 @@
|
|||
ENTRY(_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
|
||||
|
||||
ENTRY(_getmcontext) /* xxx: instruction scheduling */
|
||||
mflr %r0
|
||||
mfcr %r5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue