summaryrefslogtreecommitdiff
path: root/src/thread/x86_64/__unmapself.s
blob: 0b04d99caa9b4b2e97bc4075438df6d3202c0bc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* Copyright 2011 Nicholas J. Kain, licensed GNU LGPL 2.1 or later */
.text
.global __unmapself
.type   __unmapself,%function
__unmapself:
	movl $11,%eax   /* SYS_munmap */
	syscall         /* munmap(arg2,arg3) */
	xor %rdi,%rdi   /* exit() args: always return success */
	movl $60,%eax   /* SYS_exit */
	syscall         /* exit(0) */
.size __unmapself,.-__unmapself