opnsense-src/sys/powerpc/include
Brandon Bergren 3de50be851 [PowerPC64LE] Fix LE VSX/fpr interop
In the PCB struct, we need to match the VSX register file layout
correctly, as the VSRs shadow the FPRs.

In LE, we need to have a dword of padding before the fprs so they end up
on the correct side, as the struct may be manipulated by either the FP
routines or the VSX routines.

Additionally, when saving and restoring fprs, we need to explicitly target
the fpr union member so it gets offset correctly on LE.

Fixes weirdness with FP registers in VSX-using programs (A FPR that was
saved by the FP routines but restored by the VSX routines was becoming 0
due to being loaded to the wrong side of the VSR.)

Original patch by jhibbits.

Reviewed by:	jhibbits
Differential Revision:	https://reviews.freebsd.org/D27431
2020-12-03 01:39:59 +00:00
..
_align.h
_bus.h Regularize my copyright notice 2019-12-04 16:56:11 +00:00
_inttypes.h
_limits.h
_stdint.h
_types.h
altivec.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
asm.h [PowerPC64LE] Fix AP spinup on powernv. 2020-09-23 01:56:26 +00:00
atomic.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
bat.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
bus.h Add missing assignment forgotten in r365899 2020-09-20 15:11:52 +00:00
bus_dma.h
clock.h
counter.h Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
cpu.h powerpc: Add a CPU-custom machine check handler 2020-05-10 19:00:57 +00:00
cpufunc.h [POWERPC] Floating-Point Exception trap support 2020-11-06 13:34:30 +00:00
db_machdep.h [PowerPC] kernel ifunc support for powerpc*, fix ppc64 relocation oddities. 2020-05-07 19:32:49 +00:00
dbdma.h
dump.h [PPC64] Initial kernel minidump implementation 2019-10-14 13:04:04 +00:00
efi.h
elf.h [PowerPC64LE] Adjust ELF definitions for LE. 2020-09-13 17:36:43 +00:00
endian.h
exec.h
float.h
floatingpoint.h
fpu.h [POWERPC] Floating-Point Exception trap support 2020-11-06 13:34:30 +00:00
frame.h
gdb_machdep.h [PPC] Handle qOffsets packet 2019-12-16 13:17:39 +00:00
hid.h
ieee.h
ieeefp.h
ifunc.h [PowerPC] Define powerpc IFUNC kernel/userspace ABI. 2019-12-24 20:13:29 +00:00
in_cksum.h
intr_machdep.h Add NUMA support to powerpc 2019-04-13 04:03:18 +00:00
kdb.h
limits.h
machdep.h powerpc: Axe PPC4xx support. 2020-03-18 01:09:43 +00:00
md_var.h Move vm_page_dump bitset array definition to MI code 2020-09-21 22:20:37 +00:00
memdev.h Add the MEM_EXTRACT_PADDR ioctl to /dev/mem. 2020-09-02 18:12:47 +00:00
metadata.h
minidump.h Sparsify the vm_page_dump bitmap 2020-09-21 22:21:59 +00:00
mmuvar.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
ofw_machdep.h powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
openpicreg.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
openpicvar.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
param.h [PowerPC64LE] Set up powerpc.powerpc64le architecture 2020-09-22 23:49:30 +00:00
pcb.h [PowerPC64LE] Fix LE VSX/fpr interop 2020-12-03 01:39:59 +00:00
pcpu.h powerpc: Add a (CPU/runtime features) flags set to pcpu struct 2020-06-06 02:40:52 +00:00
pcpu_aux.h Centralize __pcpu definitions. 2019-08-29 07:25:27 +00:00
pio.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
platform.h powerpc: Fix the NUMA domain list on powernv 2020-01-18 01:26:54 +00:00
platformvar.h
pmap.h [PowerPC] Don't overwrite vm.pmap sysctl node 2020-11-17 11:36:31 +00:00
pmc_mdep.h [PowerPC] hwpmc: add support for POWER8/9 PMCs 2020-11-05 16:36:39 +00:00
proc.h Make powerpc use MAXARGS (defined as 8) instead of hardcoding '10'. 2020-11-06 19:27:27 +00:00
procctl.h amd64 KPTI: add control from procctl(2). 2019-03-16 11:44:33 +00:00
profile.h powerpc: Axe PPC4xx support. 2020-03-18 01:09:43 +00:00
psl.h [POWERPC] Floating-Point Exception trap support 2020-11-06 13:34:30 +00:00
pte.h Implement superpages for PowerPC64 (HPT) 2020-11-06 14:12:45 +00:00
ptrace.h
reg.h Use uintptr_t instead of register_t * for the stack base. 2019-12-03 23:17:54 +00:00
reloc.h
resource.h powerpc/booke: Simplify the MPC85XX PCIe root complex driver 2019-10-24 03:51:33 +00:00
rtas.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
runq.h
sc_machdep.h
setjmp.h
sigframe.h
signal.h
slb.h Implement superpages for PowerPC64 (HPT) 2020-11-06 14:12:45 +00:00
smp.h Add NUMA support to powerpc 2019-04-13 04:03:18 +00:00
spr.h Fix powerpc and powerpcspe builds 2020-11-05 20:18:00 +00:00
sr.h powerpc64: Implement Radix MMU for POWER9 CPUs 2020-05-11 02:33:37 +00:00
stack.h
stdarg.h
sysarch.h
tlb.h powerpc: Axe PPC4xx support. 2020-03-18 01:09:43 +00:00
trap.h powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
ucontext.h
vdso.h [PowerPC] Implement VDSO timebase access on powerpc* 2020-09-08 03:00:31 +00:00
vm.h
vmparam.h Implement superpages for PowerPC64 (HPT) 2020-11-06 14:12:45 +00:00