3 #ifndef _ASM_PARISC_SYSCALL_H_
4 #define _ASM_PARISC_SYSCALL_H_
7 #include <asm/ptrace.h>
9 static inline long syscall_get_nr(struct task_struct *tsk,
15 static inline void syscall_get_arguments(struct task_struct *tsk,
16 struct pt_regs *regs, unsigned int i,
17 unsigned int n, unsigned long *args)
23 args[5] = regs->gr[21];
25 args[4] = regs->gr[22];
27 args[3] = regs->gr[23];
29 args[2] = regs->gr[24];
31 args[1] = regs->gr[25];
33 args[0] = regs->gr[26];
40 #endif /*_ASM_PARISC_SYSCALL_H_*/