syscalls_32.h 388 B

123456789101112131415
  1. /*
  2. * Copyright (C) 2000 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com)
  3. * Licensed under the GPL
  4. */
  5. #include <asm/unistd.h>
  6. #include <sysdep/ptrace.h>
  7. typedef long syscall_handler_t(struct pt_regs);
  8. extern syscall_handler_t *sys_call_table[];
  9. #define EXECUTE_SYSCALL(syscall, regs) \
  10. ((long (*)(struct syscall_args)) \
  11. (*sys_call_table[syscall]))(SYSCALL_ARGS(&regs->regs))