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

Committed
skraApr 22 2016, 6:26 AM
Reviewer
kib
Parents
rS298454: Use MIN()/MAX() macros from sys/param.h.
Branches
Unknown
Tags
Unknown