freebsd-dev/sys/powerpc
Justin Hibbits 31091dea96 powerpc: Fix altivec disabling in set_mcontext()
We somewhat blindly copy the srr1 from the new context to the trap frame,
but disable FPU and VSX unconditionally, relying on the trap to re-enable
them.  This works because the FPU manages the VSX extended FP registers,
which is governed by the PCB_FPFREGS flag.  However, with altivec, we
would blindly disable PSL_VEC, without touching PCB_VEC.  Handle this case
by disabling altivec in both srr1 and pcb_flags, if the mcontext doesn't
have _MC_AV_VALID set.

Reported by:	pkubaj
2020-02-06 01:25:30 +00:00
..
aim uma: convert mbuf_jumbo_alloc to UMA_ZONE_CONTIG & tag others 2020-02-04 22:40:23 +00:00
amigaone powerpc/amiga: Hide CPLD date and time printing behind bootverbose 2020-01-20 04:01:35 +00:00
booke [PowerPC] Fix VSX context handling 2020-02-04 20:40:45 +00:00
conf [PowerPC64] Enable virtio drivers 2020-01-16 11:33:15 +00:00
cpufreq powerpc: Fix cpufreq statement scoping 2019-03-08 03:59:53 +00:00
fpu powerpc: Apply r178139 from sparc64 to powerpc's fpu_sqrt 2019-04-03 03:54:30 +00:00
include Define MAXCPU consistently between the kernel and KLDs. 2020-02-05 19:08:21 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx powerpc/mpc85xx: Partially revert r356640 2020-01-13 23:09:00 +00:00
ofw powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
powermac Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
powernv [PPC64] Fix NUMA on POWER8 2020-01-29 18:13:44 +00:00
powerpc powerpc: Fix altivec disabling in set_mcontext() 2020-02-06 01:25:30 +00:00
ps3 Convert to if_foreach_llmaddr() KPI. 2019-10-21 18:13:33 +00:00
pseries This is Ethernet driver so mark the interrupt appropriately. 2020-01-23 01:46:05 +00:00
psim Remove more needless <sys/tty.h> includes 2019-12-01 20:43:37 +00:00