summaryrefslogblamecommitdiff
path: root/src/thread/x86_64/__unmapself.s
blob: 99c1b7c168efde0dfae9745f31805ef95ab3028a (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                                     
                             
            
                                        

                                                                
                                      
                                     
/* 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) */