diff options
Diffstat (limited to 'arch/mips/kernel/scall64-n32.S')
-rw-r--r-- | arch/mips/kernel/scall64-n32.S | 4 |
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: | |||
90 | li a1, 0 | 90 | li a1, 0 |
91 | jal do_syscall_trace | 91 | jal do_syscall_trace |
92 | 92 | ||
93 | move t0, s0 | ||
94 | RESTORE_STATIC | ||
93 | ld a0, PT_R4(sp) # Restore argument registers | 95 | ld a0, PT_R4(sp) # Restore argument registers |
94 | ld a1, PT_R5(sp) | 96 | ld a1, PT_R5(sp) |
95 | ld a2, PT_R6(sp) | 97 | ld a2, PT_R6(sp) |
96 | ld a3, PT_R7(sp) | 98 | ld a3, PT_R7(sp) |
97 | ld a4, PT_R8(sp) | 99 | ld a4, PT_R8(sp) |
98 | ld a5, PT_R9(sp) | 100 | ld a5, PT_R9(sp) |
99 | jalr s0 | 101 | jalr t0 |
100 | 102 | ||
101 | li t0, -EMAXERRNO - 1 # error? | 103 | li t0, -EMAXERRNO - 1 # error? |
102 | sltu t0, t0, v0 | 104 | sltu t0, t0, v0 |