summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/__testandset.S
blob: af7b4d5a09c640d329e4e0613a60ec481d09b25e (plain)
1
2
3
4
5
6
7
8
.text
.global __testandset
__testandset:
	xorl	%eax, %eax
	movl	0x4(%esp),%edx
	incl	%eax
	xchgl	%eax,(%edx)
	ret