summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2001-02-09 21:05:46 +0000
committerRalf Baechle <ralf@linux-mips.org>2001-02-09 21:05:46 +0000
commitfa1984824312eb3e00173faa9017b01100b19f64 (patch)
tree8a97f4c155986e951fac9064ea375c015ba0364f /arch/mips
parentccb02065f8e9097b1e6c1eccd62d2b4db6c86020 (diff)
Untested attempt to fix MIPS_ATOMIC_SET.
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/kernel/sysmips.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/sysmips.c b/arch/mips/kernel/sysmips.c
index 827811b1f..0d6a445a3 100644
--- a/arch/mips/kernel/sysmips.c
+++ b/arch/mips/kernel/sysmips.c
@@ -109,6 +109,9 @@ sys_sysmips(int cmd, int arg1, int arg2, int arg3)
if (current->ptrace & PT_TRACESYS)
syscall_trace();
+ ((struct pt_regs *)&cmd)->regs[2] = tmp;
+ ((struct pt_regs *)&cmd)->regs[7] = 0;
+
__asm__ __volatile__(
"move\t$29, %0\n\t"
"j\to32_ret_from_sys_call"