RFC: syscall patch for i386
Joakim Tjernlund
joakim.tjernlund at transmode.se
Sun Oct 30 10:56:43 UTC 2005
>
> 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 ...
I think Peter tried that and it didn't work some unknown reason.
Jocke
>
> > @@ -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
More information about the uClibc
mailing list