Commit bda8229b authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle

MIPS: Set positive error number to errno on illegal_syscall

Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 7920c4d6
...@@ -180,7 +180,7 @@ bad_stack: ...@@ -180,7 +180,7 @@ bad_stack:
* The system call does not exist in this kernel * The system call does not exist in this kernel
*/ */
illegal_syscall: illegal_syscall:
li v0, -ENOSYS # error li v0, ENOSYS # error
sw v0, PT_R2(sp) sw v0, PT_R2(sp)
li t0, 1 # set error flag li t0, 1 # set error flag
sw t0, PT_R7(sp) sw t0, PT_R7(sp)
......
...@@ -117,7 +117,7 @@ syscall_trace_entry: ...@@ -117,7 +117,7 @@ syscall_trace_entry:
illegal_syscall: illegal_syscall:
/* This also isn't a 64-bit syscall, throw an error. */ /* This also isn't a 64-bit syscall, throw an error. */
li v0, -ENOSYS # error li v0, ENOSYS # error
sd v0, PT_R2(sp) sd v0, PT_R2(sp)
li t0, 1 # set error flag li t0, 1 # set error flag
sd t0, PT_R7(sp) sd t0, PT_R7(sp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment