summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/scall64-64.S
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2008-10-24 18:17:22 +0200
committerRalf Baechle <ralf@linux-mips.org>2008-10-27 17:18:26 +0100
commitbda8229bdd087167f463ad5e74299987924f8137 (patch)
tree739744571df9ff4ad9a75bc9c3db74a9cbdbeb01 /arch/mips/kernel/scall64-64.S
parentMIPS: SMP: Don't reenable interrupts in stop_this_cpu; use WAIT instruction. (diff)
downloadlinux-bda8229bdd087167f463ad5e74299987924f8137.tar.xz
linux-bda8229bdd087167f463ad5e74299987924f8137.zip
MIPS: Set positive error number to errno on illegal_syscall
Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/scall64-64.S')
-rw-r--r--arch/mips/kernel/scall64-64.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S
index 3d58204c9d44..a9e171618994 100644
--- a/arch/mips/kernel/scall64-64.S
+++ b/arch/mips/kernel/scall64-64.S
@@ -117,7 +117,7 @@ syscall_trace_entry:
illegal_syscall:
/* This also isn't a 64-bit syscall, throw an error. */
- li v0, -ENOSYS # error
+ li v0, ENOSYS # error
sd v0, PT_R2(sp)
li t0, 1 # set error flag
sd t0, PT_R7(sp)