3 #ifndef _ASM_PARISC_SYSCALL_H_
4 #define _ASM_PARISC_SYSCALL_H_
6 #include <uapi/linux/audit.h>
7 #include <linux/compat.h>
9 #include <asm/ptrace.h>
11 static inline long syscall_get_nr(struct task_struct
*tsk
,
17 static inline void syscall_get_arguments(struct task_struct
*tsk
,
18 struct pt_regs
*regs
, unsigned int i
,
19 unsigned int n
, unsigned long *args
)
25 args
[5] = regs
->gr
[21];
27 args
[4] = regs
->gr
[22];
29 args
[3] = regs
->gr
[23];
31 args
[2] = regs
->gr
[24];
33 args
[1] = regs
->gr
[25];
35 args
[0] = regs
->gr
[26];
42 static inline int syscall_get_arch(void)
44 int arch
= AUDIT_ARCH_PARISC
;
46 if (!is_compat_task())
47 arch
= AUDIT_ARCH_PARISC64
;
51 #endif /*_ASM_PARISC_SYSCALL_H_*/