PERFORCE change 48753 for review

Juli Mallett jmallett at FreeBSD.org
Thu Mar 11 19:07:33 PST 2004


http://perforce.freebsd.org/chv.cgi?CH=48753

Change 48753 by jmallett at jmallett_oingo on 2004/03/11 19:07:21

	Just disable cache errors in the cache vector.  I'm getting
	a lot of cache vector hits, which I'm incredibly suspicious of.
	
	Also use a real copyright, much as I like it being PD...

Affected files ...

.. //depot/projects/mips/sys/mips/mips/exception.S#17 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/exception.S#17 (text+ko) ====

@@ -1,12 +1,29 @@
 /*-
- * Author:	Juli Mallett <jmallett at FreeBSD.org>
- * Date:	May 24, 2003
- * Description:
- * 	FreeBSD/MIPS exception handling and related.
+ * Copyright (c) 2003-2004 Juli Mallett <jmallett at FreeBSD.org>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
  *
- * This file is in the public domain.
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
  *
- * $FreeBSD$
+ * $P4: //depot/projects/mips/sys/mips/mips/exception.S#17 $
  */
 
 #include "opt_ddb.h"
@@ -125,17 +142,14 @@
 
 LEAF(CacheVector)
 	.set noat
-	dla	k0, __panic
-	li	a0, 0
-	li	a1, 0
-	dmtc0	k0, MIPS_COP_0_EXC_PC
-	dla	a2, 1f
+	mfc0	k0, MIPS_COP_0_CONFIG
+	li	k1, MIPS_SR_DIAG_PE
+	and	k0, k1
+	mtc0	k0, MIPS_COP_0_CONFIG
+	nop
 	eret
 	.set at
 VEND(CacheVector)
-	.data
-1:	.asciiz "CacheVector"
-	.text
 
 LEAF(TLBMissVector)
 	.set noat


More information about the p4-projects mailing list