HomeFreeBSD

Add four functions which check a virtual address for stage 1 privileged

Description

Add four functions which check a virtual address for stage 1 privileged
(PL1) and unprivileged (PL0) read/write access. As cp15 virtual to
physical address translation operations are used, interrupts must be
disabled to get consistent result when they are called.

These functions should be used only in very specific occasions like
during abort handling or kernel debugging. One of them is going to be
used in pmap_fault(). However, complete function set is added. It cost
nothing, as they are inlined.

While here, fix comment of #endif.

Reviewed by: kib

Details

Provenance
skraAuthored on
Reviewer
kib
Parents
rS298454: Use MIN()/MAX() macros from sys/param.h.
Branches
Unknown
Tags
Unknown