18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright 2003 PathScale, Inc. 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Licensed under the GPL 58c2ecf20Sopenharmony_ci */ 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef __SYSDEP_X86_64_SYSCALLS_H__ 88c2ecf20Sopenharmony_ci#define __SYSDEP_X86_64_SYSCALLS_H__ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#include <linux/msg.h> 118c2ecf20Sopenharmony_ci#include <linux/shm.h> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_citypedef long syscall_handler_t(long, long, long, long, long, long); 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciextern syscall_handler_t *sys_call_table[]; 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#define EXECUTE_SYSCALL(syscall, regs) \ 188c2ecf20Sopenharmony_ci (((*sys_call_table[syscall]))(UPT_SYSCALL_ARG1(®s->regs), \ 198c2ecf20Sopenharmony_ci UPT_SYSCALL_ARG2(®s->regs), \ 208c2ecf20Sopenharmony_ci UPT_SYSCALL_ARG3(®s->regs), \ 218c2ecf20Sopenharmony_ci UPT_SYSCALL_ARG4(®s->regs), \ 228c2ecf20Sopenharmony_ci UPT_SYSCALL_ARG5(®s->regs), \ 238c2ecf20Sopenharmony_ci UPT_SYSCALL_ARG6(®s->regs))) 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciextern long old_mmap(unsigned long addr, unsigned long len, 268c2ecf20Sopenharmony_ci unsigned long prot, unsigned long flags, 278c2ecf20Sopenharmony_ci unsigned long fd, unsigned long pgoff); 288c2ecf20Sopenharmony_ciextern syscall_handler_t sys_modify_ldt; 298c2ecf20Sopenharmony_ciextern syscall_handler_t sys_arch_prctl; 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#endif 32