HomeFreeBSD

riscv: Port improvements from arm64/amd64 pmaps, part 2

Description

riscv: Port improvements from arm64/amd64 pmaps, part 2

  • Give pmap_promote_l2() a return value indicating whether or not promotion succeeded.
  • Check pmap_ps_enabled() in pmap_promote_l2() rather than making callers do it.
  • Annotate superpages_enabled with __read_frequently.

Reviewed by: kib
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D42289

(cherry picked from commit 3c4f46b0d57b76d304f8a94862c6ba9be0273565)

Details

Provenance
markjAuthored on Nov 2 2023, 6:33 PM
Reviewer
kib
Differential Revision
D42289: riscv: Port improvements from arm64/amd64 pmaps, part 2
Parents
rG8c88d17fa5c4: riscv: Port improvements from arm64/amd64 pmaps, part 1
Branches
Unknown
Tags
Unknown