HomeFreeBSD

Clean up the riscv pmap_bootstrap() implementation.

Description

Clean up the riscv pmap_bootstrap() implementation.

  • Build up phys_avail[] in a single loop, excluding memory used by the loaded kernel.
  • Fix an array indexing bug in the aforementioned phys_avail[] initialization.[1]
  • Remove some unneeded code copied from the arm64 implementation.

PR: 231515 [1]
Reviewed by: jhb
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D18464

Details

Provenance
markjAuthored on
Reviewer
jhb
Differential Revision
D18464: Clean up initialization of phys_avail.
Parents
rS342092: MFC r341694:
Branches
Unknown
Tags
Unknown