| Elliott Hughes | 103ccde | 2013-10-16 14:27:59 -0700 | [diff] [blame] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
| 2 | |||||
| Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame] | 3 | #include <asm/unistd.h> |
| 4 | #include <linux/err.h> | ||||
| 5 | #include <machine/asm.h> | ||||
| 6 | |||||
| Elliott Hughes | 6b53c23 | 2013-10-24 22:36:58 -0700 | [diff] [blame] | 7 | ENTRY(__exit) |
| Elliott Hughes | e4ffd9f | 2013-10-01 13:29:43 -0700 | [diff] [blame] | 8 | movl $__NR_exit, %eax |
| 9 | syscall | ||||
| 10 | cmpq $-MAX_ERRNO, %rax | ||||
| 11 | jb 1f | ||||
| 12 | negl %eax | ||||
| 13 | movl %eax, %edi | ||||
| 14 | call __set_errno | ||||
| 15 | orq $-1, %rax | ||||
| 16 | 1: | ||||
| 17 | ret | ||||
| Elliott Hughes | 6b53c23 | 2013-10-24 22:36:58 -0700 | [diff] [blame] | 18 | END(__exit) |
| 19 | .hidden _C_LABEL(__exit) | ||||