Skip to content

Instantly share code, notes, and snippets.

@chris-se
Created February 7, 2016 00:34
Show Gist options
  • Save chris-se/f45b1fadd36c73dbea9c to your computer and use it in GitHub Desktop.
Save chris-se/f45b1fadd36c73dbea9c to your computer and use it in GitHub Desktop.
Index: x86_64/__testandset.S
===================================================================
RCS file: /cvs/dietlibc/x86_64/__testandset.S,v
retrieving revision 1.3
diff -u -p -r1.3 __testandset.S
--- x86_64/__testandset.S 25 Jan 2016 19:04:48 -0000 1.3
+++ x86_64/__testandset.S 7 Feb 2016 00:31:29 -0000
@@ -9,7 +9,5 @@
__testandset:
xorl %eax,%eax
incl %eax
- xchg %rax,(%rdi)
+ xchg %eax,(%rdi)
ret
-
-link_warning("__testandset", "warning: __testandset() was never tested!")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment