HomeFreeBSD

Remove hard-coded trap-handling logic involving the segmented memory model

Description

Remove hard-coded trap-handling logic involving the segmented memory model
used with hashed page tables on AIM and place it into a new, modular pmap
function called pmap_decode_kernel_ptr(). This function is the inverse
of pmap_map_user_ptr(). With POWER9 radix tables, which mapping to use
becomes more complex than just AIM/BOOKE and it is best to have it in
the same place as pmap_map_user_ptr().

Reviewed by: jhibbits

Details

Provenance
nwhitehornAuthored on
Reviewer
jhibbits
Parents
rS328529: Fix kernel build after r328523, correct variable names
Branches
Unknown
Tags
Unknown