--- syscall_shiny10.h 2006-07-14 18:16:53.000000000 +0200 +++ syscall_shiny10.h.new 2006-07-14 03:37:01.000000000 +0200 @@ -294,19 +294,20 @@ #define __sysc_cmd_sys "int $0x80" #ifndef __PIC__ -#define __sysc_regs "ebx", "ecx", "edx", "esi", "edi" +#define __sysc_regs "edi" +#define __sysc_rcon(n) __arg_##n("b","c","d","S","m","m") #else -#define __sysc_regs "ecx", "edx", "esi", "edi" +#define __sysc_regs "edi" +#define __sysc_rcon(n) __arg_##n("a","c","d","S","m","m") #endif + #define __sc_asmload(n,N,...) __sc_asm ( \ - __casm(n,6,1, "movl %5,%%eax" , )\ __casm(n,5,1, "movl %4,%%edi" , )\ - __casm(n,4,1, "movl %3,%%esi" , )\ - __casm(n,3,1, "movl %2,%%edx" , )\ - __casm(n,2,1, "movl %1,%%ecx" , )\ __pasm(n,1,1, "pushl %%ebx" , )\ - __casm(n,1,1, "movl %0,%%ebx" , )\ + __pasm(n,1,1, "movl %0,%%ebx" , )\ + __Pasm(n,6,1, "movl %5,%%eax" , )\ + __pasm(n,6,1, "movl %4,%%eax" , )\ __casm(n,6,1, "pushl %%ebp" , )\ ""::__sc_iregs(n,__VA_ARGS__):__sysc_clobber)