Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Feb 2012 10:36:46 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 206264 for review
Message-ID:  <201202141036.q1EAak1L035294@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@206264?ac=10

Change 206264 by rwatson@rwatson_svr_ctsrd_mipsbuild on 2012/02/14 10:36:03

	On 64-bit MIPS CPUs, set 64-bit mode for the supervisor ring, not
	just the kernel and user rings.  On traditional 64-bit MIPS
	processors, this isn't an issue, as FreeBSD doesn't use the
	supervisor ring, so this becomes a no-op.  However, CHERI rejects
	attempts to clear 64-bit mode flags for rings, including SX,
	throwing an exception, as 32-bit mode is not supported for any
	ring.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/sys/mips/mips/locore.S#2 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/sys/mips/mips/locore.S#2 (text+ko) ====

@@ -118,7 +118,7 @@
 	 */
 	li	t1, MIPS_SR_COP_1_BIT
 #ifdef __mips_n64
-	or	t1, MIPS_SR_KX | MIPS_SR_UX
+	or	t1, MIPS_SR_KX | MIPS_SR_SX | MIPS_SR_UX
 #endif
 #endif
 	/*



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