freebsd-skq/sys/sparc64
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
..
central sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
conf It's time to retire AHC_REG_PRETTY_PRINT and AHD_REG_PRETTY_PRINT from 2017-11-29 23:41:49 +00:00
ebus sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
fhc sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
include Remove SFBUF_OPTIONAL_DIRECT_MAP and such hacks, replacing them across the 2018-01-19 17:46:31 +00:00
isa sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
pci kernel: Fix several typos and minor errors 2017-12-27 03:23:21 +00:00
sbus sys/sparc64: further adoption of SPDX licensing ID tags. 2017-11-27 15:10:39 +00:00
sparc64 Implement NUMA support in uma(9) and malloc(9). Allocations from specific 2018-01-12 23:25:05 +00:00