libc-top-half/musl/src/thread/x86_64/__unmapself.s
raw| 1 | /* Copyright 2011-2012 Nicholas J. Kain, licensed under standard MIT license */ |
| 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) */ |