PERFORCE change 103120 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Thu Aug 3 15:13:17 UTC 2006


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

Change 103120 by gonzo at gonzo_hq on 2006/08/03 15:13:15

	o Disable switching to 64-bit mode in GeneralException code.
	o save_kdbaux should use 4-bytes offset of kdbaux array,
	    not 8 bytes. This was causing memory corruption.

Affected files ...

.. //depot/projects/mips2/src/sys/mips/mips/exception.S#7 edit

Differences ...

==== //depot/projects/mips2/src/sys/mips/mips/exception.S#7 (text+ko) ====

@@ -23,7 +23,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $P4: //depot/projects/mips2/src/sys/mips/mips/exception.S#6 $
+ * $P4: //depot/projects/mips2/src/sys/mips/mips/exception.S#7 $
  */
 
 #include "opt_ddb.h"
@@ -127,8 +127,10 @@
 	jal	save_kdbaux
 	nop
 #endif /* DDB */
+	/*
 	li	t0, MIPS_SR_KX
 	mtc0	t0, MIPS_COP_0_STATUS
+	*/
 
 	/*
 	 * If this is an interrupt, call cpu_intr() with the arguments:
@@ -480,16 +482,16 @@
 	 */
 	la	k0, kdbaux
 	sw	s0, 0x00(k0)
-	sw	s1, 0x08(k0)
-	sw	s2, 0x10(k0)
-	sw	s3, 0x18(k0)
-	sw	s4, 0x20(k0)
-	sw	s5, 0x28(k0)
-	sw	s6, 0x30(k0)
-	sw	s7, 0x38(k0)
-	sw	sp, 0x40(k0)
-	sw	s8, 0x48(k0)
-	sw	gp, 0x50(k0)
+	sw	s1, 0x04(k0)
+	sw	s2, 0x08(k0)
+	sw	s3, 0x0c(k0)
+	sw	s4, 0x10(k0)
+	sw	s5, 0x14(k0)
+	sw	s6, 0x18(k0)
+	sw	s7, 0x1c(k0)
+	sw	sp, 0x20(k0)
+	sw	s8, 0x24(k0)
+	sw	gp, 0x28(k0)
 
 	jr	ra
 	nop


More information about the p4-projects mailing list