summaryrefslogtreecommitdiff
path: root/arch/mips/kernel/scall64-n32.S
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-11-30 16:24:57 +0000
committerRalf Baechle <ralf@linux-mips.org>2005-12-01 11:05:17 +0000
commit04a7052c8399edc95b5e120c980823ccaade6aaf (patch)
tree230e75476b3d1fae60bfaf98d4e407d65b0be114 /arch/mips/kernel/scall64-n32.S
parentecd5a739048b4d94e4ae3545196eb752d6776c97 (diff)
[MIPS] Fix register handling in syscalls when debugging.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/scall64-n32.S')
-rw-r--r--arch/mips/kernel/scall64-n32.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S
index 7e66eb823bf6..b465ced1758f 100644
--- a/arch/mips/kernel/scall64-n32.S
+++ b/arch/mips/kernel/scall64-n32.S
@@ -90,13 +90,15 @@ n32_syscall_trace_entry:
li a1, 0
jal do_syscall_trace
+ move t0, s0
+ RESTORE_STATIC
ld a0, PT_R4(sp) # Restore argument registers
ld a1, PT_R5(sp)
ld a2, PT_R6(sp)
ld a3, PT_R7(sp)
ld a4, PT_R8(sp)
ld a5, PT_R9(sp)
- jalr s0
+ jalr t0
li t0, -EMAXERRNO - 1 # error?
sltu t0, t0, v0