Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Use COP0_SYNC after writing the exception...



details:   https://anonhg.NetBSD.org/src/rev/25c07360de54
branches:  trunk
changeset: 338465:25c07360de54
user:      matt <matt%NetBSD.org@localhost>
date:      Tue May 26 02:18:20 2015 +0000

description:
Use COP0_SYNC after writing the exception PC.

diffstat:

 sys/arch/mips/mips/mipsX_subr.S |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 4d7dbb220405 -r 25c07360de54 sys/arch/mips/mips/mipsX_subr.S
--- a/sys/arch/mips/mips/mipsX_subr.S   Tue May 26 02:16:38 2015 +0000
+++ b/sys/arch/mips/mips/mipsX_subr.S   Tue May 26 02:18:20 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mipsX_subr.S,v 1.56 2012/02/19 21:06:18 rmind Exp $    */
+/*     $NetBSD: mipsX_subr.S,v 1.57 2015/05/26 02:18:20 matt Exp $     */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -1095,11 +1095,12 @@
        _MFC0   v0, MIPS_COP_0_EXC_PC
        PTR_ADDIU v0, 4
        _MTC0   v0, MIPS_COP_0_EXC_PC
+       COP0_SYNC
 
        PTR_L   v1, L_PRIVATE(k1)               # rdhwr $3,$29 updates v1
+
        REG_L   AT, CALLFRAME_SIZ+TF_REG_AST(k0)# restore reg
        REG_L   v0, CALLFRAME_SIZ+TF_REG_V0(k0) # restore reg
-       sll     $0,$0,3                         # just in case
        eret
 END(MIPSX(user_reserved_insn))
 



Home | Main Index | Thread Index | Old Index