diff options
Diffstat (limited to 'arch/parisc/include/asm/syscall.h')
-rw-r--r-- | arch/parisc/include/asm/syscall.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/parisc/include/asm/syscall.h b/arch/parisc/include/asm/syscall.h index 80757e43cf2c..00b127a5e09b 100644 --- a/arch/parisc/include/asm/syscall.h +++ b/arch/parisc/include/asm/syscall.h | |||
@@ -29,6 +29,13 @@ static inline void syscall_get_arguments(struct task_struct *tsk, | |||
29 | args[0] = regs->gr[26]; | 29 | args[0] = regs->gr[26]; |
30 | } | 30 | } |
31 | 31 | ||
32 | static inline long syscall_get_error(struct task_struct *task, | ||
33 | struct pt_regs *regs) | ||
34 | { | ||
35 | unsigned long error = regs->gr[28]; | ||
36 | return IS_ERR_VALUE(error) ? error : 0; | ||
37 | } | ||
38 | |||
32 | static inline long syscall_get_return_value(struct task_struct *task, | 39 | static inline long syscall_get_return_value(struct task_struct *task, |
33 | struct pt_regs *regs) | 40 | struct pt_regs *regs) |
34 | { | 41 | { |