aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/include/asm/syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/include/asm/syscall.h')
-rw-r--r--arch/mips/include/asm/syscall.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/include/asm/syscall.h b/arch/mips/include/asm/syscall.h
index acf80ae0a430..83bb439597d8 100644
--- a/arch/mips/include/asm/syscall.h
+++ b/arch/mips/include/asm/syscall.h
@@ -89,6 +89,12 @@ static inline unsigned long mips_get_syscall_arg(unsigned long *arg,
89 unreachable(); 89 unreachable();
90} 90}
91 91
92static inline long syscall_get_error(struct task_struct *task,
93 struct pt_regs *regs)
94{
95 return regs->regs[7] ? -regs->regs[2] : 0;
96}
97
92static inline long syscall_get_return_value(struct task_struct *task, 98static inline long syscall_get_return_value(struct task_struct *task,
93 struct pt_regs *regs) 99 struct pt_regs *regs)
94{ 100{