freebsd-skq/sys/powerpc/include
jhibbits a7c24c425b Introduce 64-bit PowerPC Book-E support
Extend the Book-E pmap to support 64-bit operation.  Much of this was taken from
Juniper's Junos FreeBSD port.  It uses a 3-level page table (page directory
list -- PP2D, page directory, page table), but has gaps in the page directory
list where regions will repeat, due to the design of the PP2D hash (a 20-bit gap
between the two parts of the index).  In practice this may not be a problem
given the expanded address space.  However, an alternative to this would be to
use a 4-level page table, like Linux, and possibly reduce the available address
space; Linux appears to use a 46-bit address space.  Alternatively, a cache of
page directory pointers could be used to keep the overall design as-is, but
remove the gaps in the address space.

This includes a new kernel config for 64-bit QorIQ SoCs, based on MPC85XX, with
the following notes:
* The DPAA driver has not yet been ported to 64-bit so is not included in the
  kernel config.
* This has been tested on the AmigaOne X5000, using a MD_ROOT compiled in
  (total size kernel+mdroot must be under 64MB).
* This can run both 32-bit and 64-bit processes, and has even been tested to run
  a 32-bit init with 64-bit children.

Many thanks to stevek and marcel for getting Juniper's FreeBSD patches open
sourced to be used here, and to stevek for reviewing, and providing some
historical contexts on quirks of the code.

Reviewed by:	stevek
Obtained from:	Juniper (in part)
MFC after:	2 months
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D9433
2017-03-17 21:40:14 +00:00
..
_align.h
_bus.h
_inttypes.h
_limits.h Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
_stdint.h
_types.h Define the vm_ooffset_t and vm_pindex_t types as machine-independend. 2017-02-04 12:26:38 +00:00
altivec.h
asm.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
atomic.h Don't retry a lost reservation in atomic_fcmpset() 2017-01-31 03:40:13 +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 Add the SPE feature mask for e500v1 and e500v2 2016-10-29 01:24:30 +00:00
cpufunc.h Bring back r313037, with fixes for mips: 2017-02-19 02:03:09 +00:00
db_machdep.h
dbdma.h
dump.h
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 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
exec.h
float.h
floatingpoint.h
fpu.h
frame.h Hide the 'MOREARGS' macro, it conflicts with contrib code, and is only used in one file. 2017-01-22 06:30:55 +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 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
ieeefp.h
in_cksum.h
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 Renumber copyright clause 4 2017-02-28 23:42:47 +00:00
machdep.h Remove booke_enable_l3_cache declaration and remaining definition. 2016-07-17 19:24:28 +00:00
md_var.h
memdev.h
metadata.h
mmuvar.h
ofw_machdep.h
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
pcpu.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
pio.h
platform.h
platformvar.h
pmap.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
pmc_mdep.h
proc.h
profile.h
psl.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
pte.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
ptrace.h Renumber copyright clause 4 2017-02-28 23:42:47 +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
sigframe.h
signal.h
slb.h
smp.h
spr.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
sr.h
stack.h
stdarg.h
sysarch.h
tlb.h Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
trap.h Unbreak kernel breakpoints, broken for ~4 years now 2017-02-28 04:13:20 +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 Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00