HomeFreeBSD

vm_addr_ok: add power2 invariant check

Description

vm_addr_ok: add power2 invariant check

With INVARIANTS defined, have vm_addr_align_ok and vm_addr_bound_ok
panic when passed an alignment/boundary parameter that is not a power
of two.

Reviewed by: alc
Suggested by: kib, se
Differential Revision: https://reviews.freebsd.org/D33725

Details

Provenance
dougmAuthored on Jan 10 2022, 7:17 AM
Reviewer
alc
Differential Revision
D33725: Add invariants that check validity of alignment, boundary parameters
Parents
rG90bc1cf65778: iflib: Relax timer period from 0.5 to 0.5-0.75s.
Branches
Unknown
Tags
Unknown