Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 May 2012 16:20:51 GMT
From:      Robert Watson <rwatson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 211438 for review
Message-ID:  <201205201620.q4KGKpTt088985@skunkworks.freebsd.org>

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

Change 211438 by rwatson@rwatson_svr_ctsrd_mipsbuild on 2012/05/20 16:20:41

	Insert a restoration of userspace $c0 before another instance
	of eret.

Affected files ...

.. //depot/projects/ctsrd/cheribsd/src/sys/mips/mips/swtch.S#3 edit

Differences ...

==== //depot/projects/ctsrd/cheribsd/src/sys/mips/mips/swtch.S#3 (text+ko) ====

@@ -162,6 +162,9 @@
 	mtc0	k0, MIPS_COP_0_STATUS	# switch to user mode (when eret...)
 	HAZARD_DELAY
 	sync
+#ifdef CPU_CHERI
+	cmove		$c0, $c27	# Restore user data segment
+#endif
 	eret
 	.set	at
 END(fork_trampoline)



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