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