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 | |||||
7 | ENTRY(delete_module) | ||||
8 | movl $__NR_delete_module, %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 | ||||
18 | END(delete_module) |