diff options
Diffstat (limited to 'arch/parisc/include/asm/syscall.h')
-rw-r--r-- | arch/parisc/include/asm/syscall.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/syscall.h b/arch/parisc/include/asm/syscall.h index a5eba95d87fe..637ce8d6f375 100644 --- a/arch/parisc/include/asm/syscall.h +++ b/arch/parisc/include/asm/syscall.h | |||
@@ -39,6 +39,19 @@ static inline void syscall_get_arguments(struct task_struct *tsk, | |||
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 | ||
42 | static inline void syscall_set_return_value(struct task_struct *task, | ||
43 | struct pt_regs *regs, | ||
44 | int error, long val) | ||
45 | { | ||
46 | regs->gr[28] = error ? error : val; | ||
47 | } | ||
48 | |||
49 | static inline void syscall_rollback(struct task_struct *task, | ||
50 | struct pt_regs *regs) | ||
51 | { | ||
52 | /* do nothing */ | ||
53 | } | ||
54 | |||
42 | static inline int syscall_get_arch(void) | 55 | static inline int syscall_get_arch(void) |
43 | { | 56 | { |
44 | int arch = AUDIT_ARCH_PARISC; | 57 | int arch = AUDIT_ARCH_PARISC; |