HomeFreeBSD

vm_fault: Introduce a fault_status enum for internal return types

Description

vm_fault: Introduce a fault_status enum for internal return types

Rather than overloading the meanings of the Mach statuses, introduce a
new set for use internally in the fault code. This makes the control
flow easier to follow and provides some extra error checking when a
fault status variable is used in a switch statement.

vm_fault_lookup() and vm_fault_relookup() continue to use Mach statuses
for now, as there isn't much benefit to converting them and they
effectively pass through a status from vm_map_lookup().

Obtained from: jeff (object_concurrency patches)
Reviewed by: kib

(cherry picked from commit f1b642c255a2931fd793219d11562310a2ce49c8)

Details

Provenance
markjAuthored on Nov 24 2021, 6:43 PM
Parents
rG61c3b6832d3b: vm_fault: Move nera into faultstate
Branches
Unknown
Tags
Unknown