RFC: syscall patch for i386

Peter S. Mazinger ps.m at gmx.net
Wed Nov 2 08:35:04 UTC 2005


On Tue, 1 Nov 2005, Joakim Tjernlund wrote:

>  > 
> > On Sun, 30 Oct 2005, Mike Frysinger wrote:
> > 
> > > On Sat, Oct 29, 2005 at 01:41:03PM +0200, Peter S. Mazinger wrote:
> > > > Hey x86 asm gurus, is the attached patch ok to apply to 
> > > > i386/bits/syscalls.h?
> > > 
> > > i would have used the gcc ifdefs if you want to go that route ...
> > 
> > What do you mean by gcc ifdefs?
> 
> #ifndef _BITS_SYSCALLS_ASM
> # define _BITS_SYSCALLS_ASM
> 
> .....
> 
> #endif

that doesn't work, it seems it has to be done in asm

Peter
> 
> > 
> > Peter
> > > 
> > > > @@ -30,6 +31,8 @@
> > > >       ".L__X'%edi = 3\n\t"
> > > >       ".L__X'%ebp = 3\n\t"
> > > >       ".L__X'%esp = 3\n\t"
> > > > +#ifndef _BITS_SYSCALLS_ASM
> > > > +# define _BITS_SYSCALLS_ASM
> > > >       ".macro bpushl name reg\n\t"
> > > >       ".if 1 - \\name\n\t"
> > > >       ".if 2 - \\name\n\t"
> > > > @@ -54,7 +57,9 @@
> > > >       "movl \\reg, %ebx\n\t"
> > > >       ".endif\n\t"
> > > >       ".endif\n\t"
> > > > -     ".endm\n\t");
> > > > +     ".endm\n\t"
> > > > +#endif
> > > > +     );
> > > >  
> > > >  
> > > >  #undef _syscall0
> > > -mike
> > > 
> > > 
> > 
> > -- 
> > Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
> > Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2
> > 
> > _______________________________________________
> > uClibc mailing list
> > uClibc at uclibc.org
> > http://busybox.net/cgi-bin/mailman/listinfo/uclibc
> > 
> > 
> 
> 

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list