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 fix _MTC0_V0_USERLOCAL for _LP64 as well



details:   https://anonhg.NetBSD.org/src/rev/ef427f983088
branches:  trunk
changeset: 333991:ef427f983088
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Nov 25 05:28:26 2014 +0000

description:
fix _MTC0_V0_USERLOCAL for _LP64 as well
ok matt@

diffstat:

 sys/arch/mips/mips/mips_machdep.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (34 lines):

diff -r 1055315dc9bb -r ef427f983088 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Tue Nov 25 05:05:16 2014 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Tue Nov 25 05:28:26 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.261 2014/11/22 15:02:39 macallan Exp $      */
+/*     $NetBSD: mips_machdep.c,v 1.262 2014/11/25 05:28:26 macallan Exp $      */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -111,7 +111,7 @@
  */
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.261 2014/11/22 15:02:39 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.262 2014/11/25 05:28:26 macallan Exp $");
 
 #define __INTR_PRIVATE
 #include "opt_cputype.h"
@@ -172,14 +172,9 @@
 
 #ifdef _LP64
 #define        _LOAD_V0_L_PRIVATE_A0   _MKINSN(OP_LD, _R_A0, _R_V0, 0, offsetof(lwp_t, l_private))
-#define        _MTC0_V0_USERLOCAL      _MKINSN(OP_COP0, OP_DMT, _R_V0, MIPS_COP_0_TLB_CONTEXT, 2)
+#define        _MTC0_V0_USERLOCAL      _MKINSN(OP_COP0, OP_DMT, _R_V0, MIPS_COP_0_TLB_CONTEXT, 4)
 #else
 #define        _LOAD_V0_L_PRIVATE_A0   _MKINSN(OP_LW, _R_A0, _R_V0, 0, offsetof(lwp_t, l_private))
-/*
- * XXX
- * the asm code in mipsX_subr.S uses ,4 - the definition above probably needs
- * the same fix
- */
 #define        _MTC0_V0_USERLOCAL      _MKINSN(OP_COP0, OP_MT, _R_V0, MIPS_COP_0_TLB_CONTEXT, 4)
 #endif
 #define        JR_RA                   _MKINSN(OP_SPECIAL, _R_RA, 0, 0, OP_JR)



Home | Main Index | Thread Index | Old Index