HomeFreeBSD

powerpc/pmap: Make use of tlb1_mapin_region in pmap_mapdev_attr()

Description

powerpc/pmap: Make use of tlb1_mapin_region in pmap_mapdev_attr()

tlb1_mapin_region() and pmap_mapdev_attr() do roughly the same thing -- map
a chunk of physical address space(memory or MMIO) into virtual, but do it in
differing ways. Unify the code, settling on pmap_mapdev_attr()'s algorithm,
to simplify and unify the logic. This fixes a bug with growing the kernel
mappings in mmu_booke_bootstrap(), where part of the mapping was not getting
done, leading to a hang when the unmapped VAs were accessed.

Details

Provenance
jhibbitsAuthored on
Parents
rS354325: Move the struct debug_monitor_state out of _KERNEL.
Branches
Unknown
Tags
Unknown