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 Always get cop0 STATUS register for savec...



details:   https://anonhg.NetBSD.org/src/rev/b3cebeeaea08
branches:  trunk
changeset: 816418:b3cebeeaea08
user:      maya <maya%NetBSD.org@localhost>
date:      Mon Jul 04 15:20:16 2016 +0000

description:
Always get cop0 STATUS register for savectx, not just in PARANOIA case.
We later save this value in PCB_CONTEXT+SF_REG_SR, it needs to be valid.

ok dholland@

diffstat:

 sys/arch/mips/mips/locore.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r be2aeecfb300 -r b3cebeeaea08 sys/arch/mips/mips/locore.S
--- a/sys/arch/mips/mips/locore.S       Mon Jul 04 14:47:39 2016 +0000
+++ b/sys/arch/mips/mips/locore.S       Mon Jul 04 15:20:16 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.S,v 1.200 2016/07/02 19:40:57 maya Exp $        */
+/*     $NetBSD: locore.S,v 1.201 2016/07/04 15:20:16 maya Exp $        */
 
 /*
  * Copyright (c) 1992, 1993
@@ -499,8 +499,8 @@
  * void savectx(struct pcb *)
  */
 LEAF(savectx)
+       mfc0    v0, MIPS_COP_0_STATUS
 #ifdef PARANOIA
-       mfc0    v0, MIPS_COP_0_STATUS
        MFC0_HAZARD
        and     t0, v0, MIPS_SR_INT_IE
 #if __mips >= 32



Home | Main Index | Thread Index | Old Index