Re: [PATCHv4 2/6] x86&x86-64 support for sys_indirect

2007-11-20 Thread Ulrich Drepper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Heiko Carstens wrote: > All these macros could be functions, or? Would give us some type checking > and avoids the capital letters. Should be possible now. I didn't do it initially since the macro used the macro for the largest syscall number. That

Re: [PATCHv4 2/6] x86&x86-64 support for sys_indirect

2007-11-20 Thread Heiko Carstens
> +#define INDIRECT_SYSCALL(regs) (regs)->rax > +#define INDIRECT_SYSCALL32(regs) (regs)->eax > + > +#define CALL_INDIRECT(regs) \ > + ({ extern long (*sys_call_table[]) (__u64, __u64, __u64, __u64, __u64, > __u64); \ > + sys_call_table[INDIRECT_SYSCALL(regs)] ((regs)->rdi, (regs)->rsi, \ > +