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

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
rG7703ac2e983b: riscv: Port improvements from arm64/amd64 pmaps, part 1
Branches
Unknown
Tags
Unknown