9 |
|
|
10 |
#ifdef _REGPARM |
#ifdef _REGPARM |
11 |
|
|
12 |
#define ARG(n) (4*n+20)(%esp) |
#define ARG(n) (4*n+24)(%esp) |
13 |
|
#define SYSNO ARG(-2) |
14 |
|
|
15 |
.text |
.text |
16 |
.align 4 |
.align 4 |
17 |
.globl __syscall_varadic |
.globl __syscall_varadic |
18 |
.type __syscall_varadic,@function |
.type __syscall_varadic,@function |
19 |
__syscall_varadic: |
__syscall_varadic: |
|
popl %eax |
|
20 |
pushl %ebx |
pushl %ebx |
21 |
pushl %esi |
pushl %esi |
22 |
pushl %edi |
pushl %edi |
23 |
pushl %ebp |
pushl %ebp |
24 |
|
|
25 |
|
movl SYSNO,%eax |
26 |
movl ARG(0),%ebx # Syscall arguments |
movl ARG(0),%ebx # Syscall arguments |
27 |
movl ARG(1),%ecx |
movl ARG(1),%ecx |
28 |
movl ARG(2),%edx |
movl ARG(2),%edx |