Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 00:28:22 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 219712 for review
Message-ID:  <201211100028.qAA0SMXO026773@skunkworks.freebsd.org>

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

Change 219712 by rwatson@rwatson_svr_ctsrd_mipsbuild on 2012/11/10 00:27:21

	During rearrangement of capability registers for CHERI ISAv2, we
	switched which register would temporarily hold a saved userspace
	data capability during exception handling; however, I missed an
	instance, which meant that $C0 might not get properly saved and
	restored if exceptions were delivered while the kernel was
	running on behalf of a process containing sandboxes.  This change
	eliminates that inconsistency and now appears to allow modified
	$C0 values to work.

Affected files ...

.. //depot/projects/ctsrd/cheribsd/src/sys/mips/include/cheriasm.h#10 edit

Differences ...

==== //depot/projects/ctsrd/cheribsd/src/sys/mips/include/cheriasm.h#10 (text+ko) ====

@@ -49,7 +49,7 @@
 	andi	reg, reg, MIPS_SR_KSU_USER;				\
 	beq	reg, $0, 64f;						\
 	nop;								\
-	cmove	$c27, $c0;						\
+	cmove	$c25, $c0;						\
 	cmove	$c0, $c30;						\
 64:
 



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