Page MenuHomeFreeBSD

vm_phys: Check for overlap when adding a segment
Needs ReviewPublic

Authored by olce on Thu, Jan 23, 5:15 PM.

Details

Reviewers
markj
dougm
alc
Summary

Segments are passed by machine-dependent routines, so explicit checks
will make debugging much easier on very weird machines or when someone
is tweaking these machine-dependent routines. Additionally, this
operation is not performance-sensitive.

For the same reasons, test that we don't reach the maximum number of
physical segments (the compile-time of the internal storage) in
production kernel (replaces the existing KASSERT()).

While here, convert the remaining KASSERT() to MPASS2().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61927
Build 58811: arc lint + arc unit