HomeFreeBSD

Centralize and simpify implemention of some VM macros

Description

Centralize and simpify implemention of some VM macros

These macros have substantially identical implementations on each
platform. Use roundup2/rounddown2 for round_page/trunc_page.

This version standardizes on not using explicit casts and instead
preserving the original type. A couple of tweaks were required to
make this work.

Reviewed by: brooks, kib, markj
Obtained from: CheriBSD
Differential Revision: https://reviews.freebsd.org/D48450

Details

Provenance
brooksAuthored on Tue, Jan 14, 3:48 PM
jhbCommitted on Tue, Jan 14, 3:48 PM
Reviewer
brooks
Differential Revision
D48450: Centralize and simpify implemention of some VM macros
Parents
rGde11299323e0: pmcannotate: Add a '-m' mode option to control per-line annotations.
Branches
Unknown
Tags
Unknown