| commit | f1e8706de85f43523a789f4411b5727ed5211ec3 | [log] [tgz] |
|---|---|---|
| author | rsc <devnull@localhost> | Mon Dec 27 16:52:46 2004 +0000 |
| committer | rsc <devnull@localhost> | Mon Dec 27 16:52:46 2004 +0000 |
| tree | 8a5cfc46d87bad019c23955efee4558cbf910338 | |
| parent | 4dbefdd41ca866a10cee633a3ee9a67d9204b052 [diff] [blame] |
linux pre-2.6 implementation
diff --git a/src/libthread/Linuxasm.s b/src/libthread/Linuxasm.s new file mode 100644 index 0000000..197f12b --- /dev/null +++ b/src/libthread/Linuxasm.s
@@ -0,0 +1,7 @@ +.globl _tas +_tas: + movl $0xCAFEBABE, %eax + movl 4(%esp), %ecx + xchgl %eax, 0(%ecx) + ret +