freebsd-dev/sys/powerpc
Brandon Bergren d98eb707b0 [PowerPC] Fix VSX context handling
In r356767, memcpy/memmove/bcopy optimizations were added to libc to
improve performance.

This exposed an existing kernel issue in VSX handling. The PSL_VSX flag was
not being excluded from the psl_userstatic set, which meant that any thread
that used these and then called swapcontext(3) would get an EINVAL error.

Fixing this exposed a second issue - in r344123, the FPU was being forced
off in set_mcontext(). However, this was neglecting to ensure VSX was turned
off at the same time.

While here, add some code comments to explain what's going on.

Reviewed by:	jhibbits, luporl (earlier rev), pkubaj (earlier rev)
Sponsored by:	Tag1 Consulting, Inc.
Differential Revision:	https://reviews.freebsd.org/D23497
2020-02-04 20:40:45 +00:00
..
aim [PowerPC] Fix VSX context handling 2020-02-04 20:40:45 +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 D23057: [PowerPC] Fix offset calculations in bridge mode 2020-01-18 04:12:41 +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 VSX context handling 2020-02-04 20:40:45 +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