Message ID | 20190322041554.GE27266@altlinux.org (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | ptrace: add PTRACE_GET_SYSCALL_INFO request | expand |
diff --git a/arch/parisc/include/asm/syscall.h b/arch/parisc/include/asm/syscall.h index c04ffc6ac928..310016e1925d 100644 --- a/arch/parisc/include/asm/syscall.h +++ b/arch/parisc/include/asm/syscall.h @@ -43,6 +43,13 @@ static inline void syscall_get_arguments(struct task_struct *tsk, } } +static inline long syscall_get_error(struct task_struct *task, + struct pt_regs *regs) +{ + unsigned long error = regs->gr[28]; + return IS_ERR_VALUE(error) ? error : 0; +} + static inline long syscall_get_return_value(struct task_struct *task, struct pt_regs *regs) {