syscalls_64.h 895 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 2003 PathScale, Inc.
  3. *
  4. * Licensed under the GPL
  5. */
  6. #ifndef __SYSDEP_X86_64_SYSCALLS_H__
  7. #define __SYSDEP_X86_64_SYSCALLS_H__
  8. #include <linux/msg.h>
  9. #include <linux/shm.h>
  10. typedef long syscall_handler_t(void);
  11. extern syscall_handler_t *sys_call_table[];
  12. #define EXECUTE_SYSCALL(syscall, regs) \
  13. (((long (*)(long, long, long, long, long, long)) \
  14. (*sys_call_table[syscall]))(UPT_SYSCALL_ARG1(&regs->regs), \
  15. UPT_SYSCALL_ARG2(&regs->regs), \
  16. UPT_SYSCALL_ARG3(&regs->regs), \
  17. UPT_SYSCALL_ARG4(&regs->regs), \
  18. UPT_SYSCALL_ARG5(&regs->regs), \
  19. UPT_SYSCALL_ARG6(&regs->regs)))
  20. extern long old_mmap(unsigned long addr, unsigned long len,
  21. unsigned long prot, unsigned long flags,
  22. unsigned long fd, unsigned long pgoff);
  23. extern syscall_handler_t sys_modify_ldt;
  24. extern syscall_handler_t sys_arch_prctl;
  25. #endif