about summary refs log tree commit diff
path: root/src/thread/x86_64/__unmapself.s
blob: 438f5eb86714d2cb9c1b39078b55ea48174312df (plain) (blame)
1
2
3
4
5
6
7
8
9
/* Copyright 2011 Nicholas J. Kain, licensed GNU LGPL 2.1 or later */
.text
.global __unmapself
__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) */