Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arc/arc save/restore MIPS_COP_0_TLB_PG_MASK.



details:   https://anonhg.NetBSD.org/src/rev/13070d7c42f5
branches:  trunk
changeset: 487545:13070d7c42f5
user:      soda <soda%NetBSD.org@localhost>
date:      Fri Jun 09 05:07:32 2000 +0000

description:
save/restore MIPS_COP_0_TLB_PG_MASK.

diffstat:

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

diffs (26 lines):

diff -r dd3c5f9d001f -r 13070d7c42f5 sys/arch/arc/arc/locore_machdep.S
--- a/sys/arch/arc/arc/locore_machdep.S Fri Jun 09 05:06:25 2000 +0000
+++ b/sys/arch/arc/arc/locore_machdep.S Fri Jun 09 05:07:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_machdep.S,v 1.7 2000/03/03 12:32:43 soda Exp $  */
+/*     $NetBSD: locore_machdep.S,v 1.8 2000/06/09 05:07:32 soda Exp $  */
 /*     $OpenBSD: locore.S,v 1.12 1997/04/19 17:19:43 pefo Exp $        */
 
 /*
@@ -364,6 +364,7 @@
        nop
        lw      a2, 8(a1)
        lw      a3, 12(a1)
+       dmfc0   v0, MIPS_COP_0_TLB_PG_MASK      # Save current page mask.
        dmfc0   t0, MIPS_COP_0_TLB_HI           # Save the current PID.
 
        dmtc0   a2, MIPS_COP_0_TLB_LO0          # Set up entry low0.
@@ -384,7 +385,7 @@
 
        dmtc0   t0, MIPS_COP_0_TLB_HI           # Restore the PID.
        nop
-       dmtc0   zero, MIPS_COP_0_TLB_PG_MASK    # Default mask value.
+       dmtc0   v0, MIPS_COP_0_TLB_PG_MASK      # Restore page mask.
        j       ra
        mtc0    v1, MIPS_COP_0_STATUS_REG       # Restore the status register
 END(mips3_TLBWriteIndexedVPS)



Home | Main Index | Thread Index | Old Index