Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2008 18:32:19 GMT
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 135390 for review
Message-ID:  <200802141832.m1EIWJ9U013021@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=135390

Change 135390 by gonzo@gonzo_jeeves on 2008/02/14 18:32:01

	o Fix MCHECK exception in mips_TBIAP by generating sequential 
	    bogus address values instead of using only one for every 
	    TLB entry.
	Tested by:	rrs

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/tlb.S#7 edit

Differences ...

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

@@ -473,7 +473,7 @@
 	_MFC0	t4, COP_0_TLB_HI		# Get current PID
 	move	t2, a0
 	mfc0	t1, COP_0_TLB_WIRED
-	li	v0, MIPS_KSEG0_START		# invalid address
+	li	v0, MIPS_KSEG0_START + 0x0fff0000	# invalid address
 	mfc0	t3, COP_0_TLB_PG_MASK		# save current pgMask
 
 	# do {} while (t1 < t2)
@@ -495,6 +495,7 @@
 	tlbwi					# invalidate the TLB entry
 2:
 	addu	t1, t1, 1
+	addu	v0, 1 << (PAGE_SHIFT + 1)
 	bne	t1, t2, 1b
 	nop
 



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