HomeFreeBSD

kboot: Create segment handling code at main level

Description

kboot: Create segment handling code at main level

Create segment handling code up to the top level. Move it all into
seg.c, and make necessary adjustments for it being in a new file,
including inventing print_avail() and first_avail() to print the array
and find the first large enough memory hole. aarch64 will use this,
and I'll refactor the other platforms to use it as I make them work.

Sponsored by: Netflix
Discussed with: kevans
Differential Revision: https://reviews.freebsd.org/D38308

Details

Provenance
impAuthored on Feb 3 2023, 3:37 PM
Differential Revision
D38308: kboot: Create segment handling code at main level
Parents
rG9e5022213126: kboot: MI part of the memory enumeration code
Branches
Unknown
Tags
Unknown