svn commit: r203114 - head/sys/mips/mips

Randall Stewart rrs at FreeBSD.org
Thu Jan 28 14:03:06 UTC 2010


Author: rrs
Date: Thu Jan 28 14:03:06 2010
New Revision: 203114
URL: http://svn.freebsd.org/changeset/base/203114

Log:
  Adds additional hacks for proper bits so that
  the RMI/XLR has the COP0 and COP2 bits enabled
  Plus it needs SX too. Thanks again for JC in
  catching this ;-)
  
  Submitted by:	JC (jayachandranc at netlogicmicro.com

Modified:
  head/sys/mips/mips/locore.S

Modified: head/sys/mips/mips/locore.S
==============================================================================
--- head/sys/mips/mips/locore.S	Thu Jan 28 14:01:47 2010	(r203113)
+++ head/sys/mips/mips/locore.S	Thu Jan 28 14:03:06 2010	(r203114)
@@ -104,6 +104,12 @@ VECTOR(_locore, unknown)
 
 	/* Reset these bits */
         li	t0, ~(MIPS_SR_DE | MIPS_SR_SOFT_RESET | MIPS_SR_ERL | MIPS_SR_EXL | MIPS_SR_INT_IE)
+#elif defined (CPU_XLR)
+	/* Set these bits */
+        li	t1, (MIPS_SR_COP_2_BIT | MIPS_SR_COP_0_BIT | MIPS_SR_KX)
+
+	/* Reset these bits */
+        li	t0, ~(MIPS_SR_BEV | MIPS_SR_SOFT_RESET | MIPS_SR_INT_IE)
 #else
 	/*
 	 * t0: Bits to preserve if set:


More information about the svn-src-head mailing list