Elliott Hughes | 8465e96 | 2017-09-27 16:33:35 -0700 | [diff] [blame^] | 1 | /* Generated by gensyscalls.py. Do not edit. */ |
2 | |||||
3 | #include <private/bionic_asm.h> | ||||
4 | |||||
5 | ENTRY(getrandom) | ||||
6 | pushl %ebx | ||||
7 | .cfi_def_cfa_offset 8 | ||||
8 | .cfi_rel_offset ebx, 0 | ||||
9 | pushl %ecx | ||||
10 | .cfi_adjust_cfa_offset 4 | ||||
11 | .cfi_rel_offset ecx, 0 | ||||
12 | pushl %edx | ||||
13 | .cfi_adjust_cfa_offset 4 | ||||
14 | .cfi_rel_offset edx, 0 | ||||
15 | |||||
16 | call __kernel_syscall | ||||
17 | pushl %eax | ||||
18 | .cfi_adjust_cfa_offset 4 | ||||
19 | .cfi_rel_offset eax, 0 | ||||
20 | |||||
21 | mov 20(%esp), %ebx | ||||
22 | mov 24(%esp), %ecx | ||||
23 | mov 28(%esp), %edx | ||||
24 | movl $__NR_getrandom, %eax | ||||
25 | call *(%esp) | ||||
26 | addl $4, %esp | ||||
27 | |||||
28 | cmpl $-MAX_ERRNO, %eax | ||||
29 | jb 1f | ||||
30 | negl %eax | ||||
31 | pushl %eax | ||||
32 | call __set_errno_internal | ||||
33 | addl $4, %esp | ||||
34 | 1: | ||||
35 | popl %edx | ||||
36 | popl %ecx | ||||
37 | popl %ebx | ||||
38 | ret | ||||
39 | END(getrandom) |