Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jan 2010 14:03:06 +0000 (UTC)
From:      Randall Stewart <rrs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r203114 - head/sys/mips/mips
Message-ID:  <201001281403.o0SE36JR059333@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001281403.o0SE36JR059333>