diff options
author | rsc <devnull@localhost> | 2004-12-27 16:52:46 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-27 16:52:46 +0000 |
commit | f1e8706de85f43523a789f4411b5727ed5211ec3 (patch) | |
tree | 8a5cfc46d87bad019c23955efee4558cbf910338 /src/libthread/Linuxasm.s | |
parent | 4dbefdd41ca866a10cee633a3ee9a67d9204b052 (diff) | |
download | plan9port-f1e8706de85f43523a789f4411b5727ed5211ec3.tar.gz plan9port-f1e8706de85f43523a789f4411b5727ed5211ec3.tar.bz2 plan9port-f1e8706de85f43523a789f4411b5727ed5211ec3.zip |
linux pre-2.6 implementation
Diffstat (limited to 'src/libthread/Linuxasm.s')
-rw-r--r-- | src/libthread/Linuxasm.s | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libthread/Linuxasm.s b/src/libthread/Linuxasm.s new file mode 100644 index 00000000..197f12b5 --- /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 + |