freebsd-skq/sys/powerpc/include
jhibbits 40c4c3de40 Create a new MACHINE_ARCH for Freescale PowerPC e500v2
Summary:
The Freescale e500v2 PowerPC core does not use a standard FPU.
Instead, it uses a Signal Processing Engine (SPE)--a DSP-style vector processor
unit, which doubles as a FPU.  The PowerPC SPE ABI is incompatible with the
stock powerpc ABI, so a new MACHINE_ARCH was created to deal with this.
Additionaly, the SPE opcodes overlap with Altivec, so these are mutually
exclusive.  Taking advantage of this fact, a new file, powerpc/booke/spe.c, was
created with the same function set as in powerpc/powerpc/altivec.c, so it
becomes effectively a drop-in replacement.  setjmp/longjmp were modified to save
the upper 32-bits of the now-64-bit GPRs (upper 32-bits are only accessible by
the SPE).

Note: This does _not_ support the SPE in the e500v1, as the e500v1 SPE does not
support double-precision floating point.

Also, without a new MACHINE_ARCH it would be impossible to provide binary
packages which utilize the SPE.

Additionally, no work has been done to support ports, work is needed for this.
This also means no newer gcc can yet be used.  However, gcc's powerpc support
has been refactored which would make adding a powerpcspe-freebsd target very
easy.

Test Plan:
This was lightly tested on a RouterBoard RB800 and an AmigaOne A1222
(P1022-based) board, compiled against the new ABI.  Base system utilities
(/bin/sh, /bin/ls, etc) still function appropriately, the system is able to boot
multiuser.

Reviewed By:	bdrewery, imp
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D5683
2016-10-22 01:57:15 +00:00
..
_align.h
_bus.h
_inttypes.h
_limits.h
_stdint.h
_types.h Follow up to r287014 2015-08-22 07:27:06 +00:00
altivec.h
asm.h Provide support for ELFv2 userland if using a newer compiler (recent clang 2015-12-03 00:10:57 +00:00
atomic.h On PowerPC 64bit, the linux-compat mb() definition is implemented with 2015-11-24 09:13:21 +00:00
bat.h
bus_dma.h Revert r303890 for now here as camdd fails to build on powerpc* 2016-08-11 15:06:12 +00:00
bus.h Increase booke bus max address to 36-bits. 2016-03-18 01:30:58 +00:00
clock.h
counter.h Replace a number of conflations of mp_ncpus and mp_maxid with either 2016-07-06 14:09:49 +00:00
cpu.h Bring CPU features list in line with the ABI requirements. 2016-01-02 18:15:10 +00:00
cpufunc.h
db_machdep.h Truncate DB_SMALL_VALUE_MAX to a much lower value. 2015-01-04 01:45:26 +00:00
dbdma.h
dump.h Factor out duplicated code from dumpsys() on each architecture into generic 2015-01-07 01:01:39 +00:00
efi.h Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
elf.h
endian.h
exec.h
float.h Rationalize BSD license on sys/*/include/float.h 2015-08-05 17:05:35 +00:00
floatingpoint.h
fpu.h
frame.h The AIM DAR (data access fault address register) and Book-E DEAR registers 2015-03-04 21:06:57 +00:00
gdb_machdep.h
hid.h Set EN_MAS7_UPDATE HID0 bit for e500 core. 2016-08-07 19:09:56 +00:00
ieee.h
ieeefp.h
in_cksum.h Rationalize BSD license on sys/*/include/in_cksum.h 2015-08-05 19:05:12 +00:00
intr_machdep.h Add support for the Freescale dTSEC DPAA-based ethernet controller. 2016-02-29 03:38:00 +00:00
kdb.h
limits.h
machdep.h Remove booke_enable_l3_cache declaration and remaining definition. 2016-07-17 19:24:28 +00:00
md_var.h Provide support for userland binaries using the new ELFv2 ABI. This is a 2015-11-23 17:07:51 +00:00
memdev.h
metadata.h
mmuvar.h
ofw_machdep.h Implement OF_decode_addr() for arm. Move most of powerpc's implementation 2015-12-21 18:07:32 +00:00
openpicreg.h
openpicvar.h
param.h Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
pcb.h Use setjmp() instead of the identical-except-for-having-a-wrong-prototype 2016-01-10 16:42:14 +00:00
pcpu.h Add two new pmap functions: 2015-08-04 19:46:13 +00:00
pio.h
platform.h Extend idle support for newer Book-E cores. 2016-01-01 02:47:40 +00:00
platformvar.h
pmap.h Fix system hang when large FDT is in use 2016-08-24 03:51:40 +00:00
pmc_mdep.h Implement hwpmc(4) for Freescale e500 core. 2015-04-18 21:39:17 +00:00
proc.h
profile.h Provide support for userland binaries using the new ELFv2 ABI. This is a 2015-11-23 17:07:51 +00:00
psl.h Kernel support for the Vector-Scalar eXtension (VSX) found on the POWER7 2015-02-22 21:40:27 +00:00
pte.h Fix a panic bug that cropped up in the PTE rewrite. 2016-02-16 02:13:55 +00:00
ptrace.h Add Altivec/VMX register support to ptrace. 2015-01-14 07:01:21 +00:00
reg.h Restore the ABI of 'struct fpreg' on powerpc. 2016-02-01 23:12:04 +00:00
reloc.h
resource.h
rtas.h
runq.h
sc_machdep.h
setjmp.h Use setjmp() instead of the identical-except-for-having-a-wrong-prototype 2016-01-10 16:42:14 +00:00
sigframe.h
signal.h
slb.h Deallocate any leftover page table entries in the LPAR at boot. This 2015-03-13 00:08:58 +00:00
smp.h
spr.h Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
sr.h
stack.h
stdarg.h
sysarch.h
tlb.h Fix SMP booting for PowerPC Book-E 2016-04-19 01:48:18 +00:00
trap.h Create a new MACHINE_ARCH for Freescale PowerPC e500v2 2016-10-22 01:57:15 +00:00
ucontext.h POSIX states that #include <signal.h> shall make both mcontext_t and 2016-02-12 07:38:19 +00:00
varargs.h
vdso.h
vm.h
vmparam.h Restructure device mappings for Book-E. 2016-04-10 15:48:09 +00:00