18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Copyright (C) 2000 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com) 38c2ecf20Sopenharmony_ci * Licensed under the GPL 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include <asm/unistd.h> 78c2ecf20Sopenharmony_ci#include <sysdep/ptrace.h> 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_citypedef long syscall_handler_t(struct syscall_args); 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciextern syscall_handler_t *sys_call_table[]; 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci#define EXECUTE_SYSCALL(syscall, regs) \ 148c2ecf20Sopenharmony_ci ((*sys_call_table[syscall]))(SYSCALL_ARGS(®s->regs)) 15