lkml.org 
[lkml]   [2007]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCHv4 2/6] x86&x86-64 support for sys_indirect
> +#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, \
> + (regs)->rdx, (regs)->r10, \
> + (regs)->r8, (regs)->r9); \
> + })
> +

All these macros could be functions, or? Would give us some type checking
and avoids the capital letters.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-11-20 10:33    [W:0.293 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site