opnsense-src/sys/riscv/include
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
..
_align.h
_bus.h
_inttypes.h
_limits.h
_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
asm.h o Add support for long double. 2016-11-03 13:06:17 +00:00
atomic.h Add atomic_load(9) and atomic_store(9) operations. 2017-12-19 09:59:20 +00:00
bus.h
bus_dma.h Clean up MD pollution of bus_dma.h: 2017-07-01 05:35:29 +00:00
clock.h
counter.h Follow r317061 "Remove struct vmmeter from struct pcpu" 2017-04-19 17:06:32 +00:00
cpu.h Update RISC-V port to Privileged Architecture Version 1.9. 2016-08-02 14:50:14 +00:00
cpufunc.h o Remove operation in machine mode. 2016-08-10 12:41:36 +00:00
db_machdep.h Fix printing of negative offsets (typically from frame pointers) again. 2017-03-26 18:46:35 +00:00
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 Add AT_HWCAP2 ELF auxiliary vector. 2017-10-21 12:05:01 +00:00
endian.h
exec.h
float.h o Add support for long double. 2016-11-03 13:06:17 +00:00
floatingpoint.h
fpe.h Add full softfloat and hardfloat support for RISC-V. 2016-11-16 15:21:32 +00:00
frame.h Add RISC-V support for truss(1) 2017-01-24 09:41:44 +00:00
ieeefp.h
in_cksum.h
intr.h Update RISC-V port to Privileged Architecture Version 1.9. 2016-08-02 14:50:14 +00:00
kdb.h
machdep.h Support for v1.10 (latest) of RISC-V privilege specification. 2017-08-10 14:18:09 +00:00
md_var.h
memdev.h
minidump.h
ofw_machdep.h
param.h Add support for symmetric multiprocessing (SMP). 2016-02-24 16:50:34 +00:00
pcb.h Add full softfloat and hardfloat support for RISC-V. 2016-11-16 15:21:32 +00:00
pcpu.h Follow r317061 "Remove struct vmmeter from struct pcpu" 2017-04-19 17:06:32 +00:00
pmap.h Rework the list of all pmaps: embed the list link into pmap. 2016-04-26 14:38:18 +00:00
pmc_mdep.h
proc.h Make struct syscall_args visible to userspace compilation environment 2017-06-12 20:53:44 +00:00
profile.h SPDX: Consider code from Carnegie-Mellon University. 2017-11-30 15:48:35 +00:00
psl.h
pte.h Update RISC-V port to Privileged Architecture Version 1.9. 2016-08-02 14:50:14 +00:00
ptrace.h
reg.h Add full softfloat and hardfloat support for RISC-V. 2016-11-16 15:21:32 +00:00
reloc.h
resource.h
riscv_opcode.h Add support for ddb(4). 2016-03-10 15:51:43 +00:00
riscvreg.h Support for v1.10 (latest) of RISC-V privilege specification. 2017-08-10 14:18:09 +00:00
runq.h
sbi.h Support for v1.10 (latest) of RISC-V privilege specification. 2017-08-10 14:18:09 +00:00
setjmp.h Increase the size and alignment of the setjmp buffer. 2016-05-26 10:03:30 +00:00
sf_buf.h
signal.h
smp.h Add support for symmetric multiprocessing (SMP). 2016-02-24 16:50:34 +00:00
stack.h Add support for ddb(4). 2016-03-10 15:51:43 +00:00
stdarg.h
sysarch.h
trap.h
ucontext.h Use better form representing 32 x 128-bit floating-point registers. 2016-02-17 14:24:25 +00:00
vdso.h
vm.h
vmparam.h Remove SFBUF_OPTIONAL_DIRECT_MAP and such hacks, replacing them across the 2018-01-19 17:46:31 +00:00