	.section	.text
	.intel_syntax
	.global munmap
munmap:
	.ifdef	NetBSD
	mov	%eax, 73		# MUNMAP system call
	push	[%esp + 8]		# Length
	push	[%esp + 8]		# Address
	push	0			# Extra double-word
	int	128
	add	%esp, 12
	.else
	push	%ebx
	mov	%eax, 91		# MUNMAP system call
	mov	%ebx, [%esp + 8]	# Address
	mov	%ecx, [%esp + 12]	# Length
	int	128
	pop	%ebx
	.endif
	ret
