summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/scall_o32.S
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-23 08:00:03 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-23 08:00:03 +0000
commitcc858f6e51f21ecda51f60b595eae308f032566c (patch)
treedef4de98a50fc06cc5a2c36dba8c5824c9717fab /arch/mips/kernel/scall_o32.S
parent6dd778f9528c1acc17dbfca685f51bd5c3750d45 (diff)
Store current in $28.
Diffstat (limited to 'arch/mips/kernel/scall_o32.S')
-rw-r--r--arch/mips/kernel/scall_o32.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/kernel/scall_o32.S b/arch/mips/kernel/scall_o32.S
index ee91ac947..eb25c34e5 100644
--- a/arch/mips/kernel/scall_o32.S
+++ b/arch/mips/kernel/scall_o32.S
@@ -52,8 +52,7 @@ NESTED(handle_sys, PT_SIZE, sp)
subu t0, s1, 5 # 5 or more arguments?
bgezal t0, stackargs
- GET_CURRENT(s3) # syscall tracing enabled?
- lw s3, TASK_FLAGS(s3)
+ lw s3, TASK_FLAGS($28) # syscall tracing enabled?
andi s3, PF_TRACESYS
bnez s3, trace_a_syscall
@@ -150,7 +149,7 @@ sigill_and_out:
li t0, -1 # not a sys call
REG_S t0, PT_OR2(sp)
li a0, SIGILL
- GET_CURRENT(a2)
+ move a2, $28
jal force_sig
j ret_from_sys_call
END(handle_sys)