aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/FreeBSD-386.s
blob: 624518e07715768157dd775b8f66c60a5114a02b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

.globl	_xinc
_xinc:
	movl 4(%esp), %eax
	lock incl 0(%eax)
	ret

.globl	_xdec
_xdec:
	movl 4(%esp), %eax
	lock decl 0(%eax)
	jz iszero
	movl %eax, 1
	ret
iszero:
	movl %eax, 0
	ret