linux pre-2.6 implementation

This commit is contained in:
rsc 2004-12-27 16:52:46 +00:00
parent 4dbefdd41c
commit f1e8706de8
2 changed files with 355 additions and 0 deletions

7
src/libthread/Linuxasm.s Normal file
View file

@ -0,0 +1,7 @@
.globl _tas
_tas:
movl $0xCAFEBABE, %eax
movl 4(%esp), %ecx
xchgl %eax, 0(%ecx)
ret