HomeFreeBSD

Define PHYS_TO_DMAP() and DMAP_TO_PHYS() as panics on the architectures

Description

Define PHYS_TO_DMAP() and DMAP_TO_PHYS() as panics on the architectures
(i386 and arm) that never implement them. This allows the removal of
#ifdef PHYS_TO_DMAP on code otherwise protected by a runtime check on
PMAP_HAS_DMAP. It also fixes the build on ARM and i386 after I forgot an
#ifdef in r328168.

Reported by: Milan Obuch
Pointy hat to: me

Details

Provenance
nwhitehornAuthored on
Parents
rS328177: PTI: Trap if we returned to userspace with kernel (full) page table
Branches
Unknown
Tags
Unknown