diff options
Diffstat (limited to 'mdk-stage1/dietlibc/x86_64/__testandset.S')
-rw-r--r-- | mdk-stage1/dietlibc/x86_64/__testandset.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/x86_64/__testandset.S b/mdk-stage1/dietlibc/x86_64/__testandset.S new file mode 100644 index 000000000..7355477e6 --- /dev/null +++ b/mdk-stage1/dietlibc/x86_64/__testandset.S @@ -0,0 +1,12 @@ +#include "dietwarning.h" + +.text +.global __testandset +.type __testandset,@function +__testandset: + xorl %eax,%eax + incl %eax + xchg %rax,(%rdi) + ret + +link_warning("__testandset", "warning: __testandset() was never tested!") |