PERFORCE change 219712 for review
Robert Watson
rwatson at FreeBSD.org
Sat Nov 10 00:28:23 UTC 2012
http://p4web.freebsd.org/@@219712?ac=10
Change 219712 by rwatson at 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:
More information about the p4-projects
mailing list