Module Name: src
Committed By: macallan
Date: Mon Jun 8 18:22:23 UTC 2015
Modified Files:
src/sys/arch/mips/mips: mips_machdep.c
Log Message:
sync _MTC0_V0_USERLOCAL with cpuregs.h
now CI20 boots again
To generate a diff of this commit:
cvs rdiff -u -r1.265 -r1.266 src/sys/arch/mips/mips/mips_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/mips/mips_machdep.c
diff -u src/sys/arch/mips/mips/mips_machdep.c:1.265 src/sys/arch/mips/mips/mips_machdep.c:1.266
--- src/sys/arch/mips/mips/mips_machdep.c:1.265 Mon Jun 1 22:55:13 2015
+++ src/sys/arch/mips/mips/mips_machdep.c Mon Jun 8 18:22:23 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: mips_machdep.c,v 1.265 2015/06/01 22:55:13 matt Exp $ */
+/* $NetBSD: mips_machdep.c,v 1.266 2015/06/08 18:22:23 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.265 2015/06/01 22:55:13 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.266 2015/06/08 18:22:23 macallan Exp $");
#define __INTR_PRIVATE
#include "opt_cputype.h"
@@ -172,10 +172,10 @@ __KERNEL_RCSID(0, "$NetBSD: mips_machdep
#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, 4)
+#define _MTC0_V0_USERLOCAL _MKINSN(OP_COP0, OP_DMT, _R_V0, MIPS_COP_0_TLB_CONTEXT, 2)
#else
#define _LOAD_V0_L_PRIVATE_A0 _MKINSN(OP_LW, _R_A0, _R_V0, 0, offsetof(lwp_t, l_private))
-#define _MTC0_V0_USERLOCAL _MKINSN(OP_COP0, OP_MT, _R_V0, MIPS_COP_0_TLB_CONTEXT, 4)
+#define _MTC0_V0_USERLOCAL _MKINSN(OP_COP0, OP_MT, _R_V0, MIPS_COP_0_TLB_CONTEXT, 2)
#endif
#define JR_RA _MKINSN(OP_SPECIAL, _R_RA, 0, 0, OP_JR)