Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/klibc/arch/i386/varsyscall.S

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 814 by niro, Sat Sep 1 22:45:15 2007 UTC revision 815 by niro, Fri Apr 24 18:32:46 2009 UTC
# Line 9  Line 9 
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

Legend:
Removed from v.814  
changed lines
  Added in v.815