freebsd-nq/sys/powerpc
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
..
aim Fix typo in r277561. 2015-01-24 01:58:15 +00:00
booke Refactor PowerPC (especially AIM) init sequence to be less baroque. 2015-01-18 18:32:43 +00:00
conf Make netbooting work again by disabling BOOTP_NFSV3. Investigate why this 2015-01-16 17:41:21 +00:00
cpufreq Some style(9) fixes 2013-12-13 05:54:25 +00:00
fpu Fix debug printfs in FPU_EMU to compile on powerpc64 and enable it for 2013-12-05 21:49:14 +00:00
include Make 64-bit AIM trap handlers relocatable by changing all absolute branch 2015-01-21 19:07:45 +00:00
mambo Move Open Firmware device root on PowerPC, ARM, and MIPS systems to 2014-02-05 14:44:22 +00:00
mpc85xx Move Open Firmware device root on PowerPC, ARM, and MIPS systems to 2014-02-05 14:44:22 +00:00
ofw Correctness improvements for removing FDT excluded memory areas. 2015-01-31 18:39:32 +00:00
powermac Add support for Power Button PMU events on non-ADB macs, such as aluminum 2014-11-20 03:23:33 +00:00
powerpc Do not qualify the mcontext_t *mcp argument for set_mcontext(9) as 2015-01-31 21:43:46 +00:00
ps3 Add 64-bit DMA support in the XHCI controller driver. 2015-01-05 20:22:18 +00:00
pseries Fix bug in mapppings of multiple pages exposed by updates to the VSCSI 2015-01-27 07:20:00 +00:00
psim Move Open Firmware device root on PowerPC, ARM, and MIPS systems to 2014-02-05 14:44:22 +00:00
wii Moves all the duplicate code to a single function. 2014-11-18 17:22:08 +00:00