diff options
-rw-r--r-- | arch/mips/kernel/scall32-o32.S | 2 | ||||
-rw-r--r-- | arch/mips/kernel/scall64-64.S | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S index 5e75a316f6b1..ffa23bd07173 100644 --- a/arch/mips/kernel/scall32-o32.S +++ b/arch/mips/kernel/scall32-o32.S | |||
@@ -180,7 +180,7 @@ bad_stack: | |||
180 | * The system call does not exist in this kernel | 180 | * The system call does not exist in this kernel |
181 | */ | 181 | */ |
182 | illegal_syscall: | 182 | illegal_syscall: |
183 | li v0, -ENOSYS # error | 183 | li v0, ENOSYS # error |
184 | sw v0, PT_R2(sp) | 184 | sw v0, PT_R2(sp) |
185 | li t0, 1 # set error flag | 185 | li t0, 1 # set error flag |
186 | sw t0, PT_R7(sp) | 186 | sw t0, PT_R7(sp) |
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: | |||
117 | 117 | ||
118 | illegal_syscall: | 118 | illegal_syscall: |
119 | /* This also isn't a 64-bit syscall, throw an error. */ | 119 | /* This also isn't a 64-bit syscall, throw an error. */ |
120 | li v0, -ENOSYS # error | 120 | li v0, ENOSYS # error |
121 | sd v0, PT_R2(sp) | 121 | sd v0, PT_R2(sp) |
122 | li t0, 1 # set error flag | 122 | li t0, 1 # set error flag |
123 | sd t0, PT_R7(sp) | 123 | sd t0, PT_R7(sp) |