mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 12:43:55 +08:00
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>
This commit is contained in:
parent
7920c4d658
commit
bda8229bdd
@ -180,7 +180,7 @@ bad_stack:
|
||||
* The system call does not exist in this kernel
|
||||
*/
|
||||
illegal_syscall:
|
||||
li v0, -ENOSYS # error
|
||||
li v0, ENOSYS # error
|
||||
sw v0, PT_R2(sp)
|
||||
li t0, 1 # set error flag
|
||||
sw t0, PT_R7(sp)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user