From f1e8706de85f43523a789f4411b5727ed5211ec3 Mon Sep 17 00:00:00 2001 From: rsc Date: Mon, 27 Dec 2004 16:52:46 +0000 Subject: linux pre-2.6 implementation --- src/libthread/Linuxasm.s | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/libthread/Linuxasm.s (limited to 'src/libthread/Linuxasm.s') 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 + -- cgit v1.2.3