PERFORCE change 206264 for review
Robert Watson
rwatson at FreeBSD.org
Tue Feb 14 10:36:47 UTC 2012
http://p4web.freebsd.org/@@206264?ac=10
Change 206264 by rwatson at 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
/*
More information about the p4-projects
mailing list