freebsd-nq/sys/powerpc
Nathan Whitehorn 9a8196ce19 Remove SFBUF_OPTIONAL_DIRECT_MAP and such hacks, replacing them across the
kernel by PHYS_TO_DMAP() as previously present on amd64, arm64, riscv, and
powerpc64. This introduces a new MI macro (PMAP_HAS_DMAP) that can be
evaluated at runtime to determine if the architecture has a direct map;
if it does not (or does) unconditionally and PMAP_HAS_DMAP is either 0 or
1, the compiler can remove the conditional logic.

As part of this, implement PHYS_TO_DMAP() on sparc64 and mips64, which had
similar things but spelled differently. 32-bit MIPS has a partial direct-map
that maps poorly to this concept and is unchanged.

Reviewed by:		kib
Suggestions from:	marius, alc, kib
Runtime tested on:	amd64, powerpc64, powerpc, mips64
2018-01-19 17:46:31 +00:00
..
aim Install the SLB miss trap-handling code in the SLB-based MMU driver set up, 2018-01-15 16:08:34 +00:00
booke Move the pmap-specific code in copyinout.c that gets pointers to userland 2018-01-15 06:46:33 +00:00
conf PPC64: add AHCI back to GENERIC64 2018-01-18 06:28:21 +00:00
cpufreq sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
fpu sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
include Remove SFBUF_OPTIONAL_DIRECT_MAP and such hacks, replacing them across the 2018-01-19 17:46:31 +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 Make fsl_sata driver work on P1022 2018-01-16 04:50:23 +00:00
ofw Chase removal of FDT fixup code on PowerPC in r327907. 2018-01-13 03:09:05 +00:00
powermac Fix minor locking issues in the Power Mac Uninorth PCI bridge driver. 2018-01-10 22:19:11 +00:00
powernv PowerNV: workaround console on OPAL 5.4 2018-01-17 08:01:51 +00:00
powerpc Call platform_smp_ap_init before decr_ap_init 2018-01-18 08:34:20 +00:00
ps3 Document places we assume that physical memory is direct-mapped at zero by 2018-01-13 23:14:53 +00:00
pseries PowerNV: XICS support for PowerNV/OPAL 2018-01-16 06:24:19 +00:00
psim sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00