freebsd-skq/sys/powerpc
Justin Hibbits e683c328f8 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
..
aim Use the explicit expanded form of cmp. 2017-01-18 03:42:21 +00:00
booke Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
conf Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
cpufreq
fpu Un-static two local variables in the FPU emulator 2016-10-19 02:23:29 +00:00
include Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
mambo
mikrotik - Allow different slicers for different flash types to be registered 2017-02-22 10:21:39 +00:00
mpc85xx Fix r312613. 2017-01-22 06:17:31 +00:00
ofw Fix booting with >4GB RAM on PowerMac G5 hardware 2017-03-07 22:11:57 +00:00
powermac Include pcib_private.h for prototypes. 2017-02-26 21:33:18 +00:00
powerpc Introduce 64-bit PowerPC Book-E support 2017-03-17 21:40:14 +00:00
ps3 Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
pseries Always null-terminate ccb_pathinq.(sim_vid|hba_vid|dev_name) 2017-01-04 20:26:42 +00:00
psim Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00