Elliott Hughes | 103ccde | 2013-10-16 14:27:59 -0700 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |
Elliott Hughes | ed74484 | 2013-11-07 10:31:05 -0800 | [diff] [blame] | 3 | #include <private/bionic_asm.h> |
Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame] | 4 | |
| 5 | ENTRY(_exit) |
| 6 | movl $__NR_exit_group, %eax |
| 7 | syscall |
| 8 | cmpq $-MAX_ERRNO, %rax |
| 9 | jb 1f |
| 10 | negl %eax |
| 11 | movl %eax, %edi |
Elliott Hughes | 011e111 | 2014-09-08 15:25:01 -0700 | [diff] [blame^] | 12 | call __set_errno_internal |
Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame] | 13 | 1: |
| 14 | ret |
| 15 | END(_exit) |
Elliott Hughes | 9f52564 | 2014-04-08 17:14:01 -0700 | [diff] [blame] | 16 | |
| 17 | .globl _Exit |
| 18 | .equ _Exit, _exit |