freebsd-dev/sys/sparc64
Konstantin Belousov 206f09eb46 Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as
const.  On x86, even after the machine context is supposedly read into
the struct ucontext, lazy FPU state save code might only mark the FPU
data as hardware-owned.  Later, set_fpcontext() needs to fetch the
state from hardware, modifying the *mcp.

The set_mcontext(9) is called from sigreturn(2) and setcontext(2)
implementations and old create_thread(2) interface, which throw the
*mcp out after the set_mcontext() call.

Reported by:	dim
Discussed with:	jhb
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
2015-01-31 21:43:46 +00:00
..
central
conf Remove "New" label from NFSCL/NFSD now that they are the only NFS 2015-01-06 16:15:57 +00:00
ebus Simplify the ofw_bus_lookup_imap() API slightly: make it allocate maskbuf 2013-12-17 15:11:24 +00:00
fhc
include Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
isa Remove more superfluous const specifiers. 2014-02-23 18:36:45 +00:00
pci Revert unrelated changes accidentally committed in r271192. 2014-09-17 18:55:39 +00:00
sbus Move the implementation of bus_space_barrier(9) to the inline function in 2013-10-24 17:06:41 +00:00
sparc64 Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as 2015-01-31 21:43:46 +00:00