Page MenuHomeFreeBSD

kboot/amd64: Use common routines for memory map parsing
ClosedPublic

Authored by imp on Apr 16 2025, 7:23 PM.
Tags
None
Referenced Files
F127035560: D49864.diff
Tue, Aug 26, 8:04 PM
Unknown Object (File)
Sun, Aug 24, 11:42 PM
Unknown Object (File)
Fri, Aug 22, 12:38 PM
Unknown Object (File)
Tue, Aug 19, 2:19 PM
Unknown Object (File)
Thu, Aug 14, 10:44 PM
Unknown Object (File)
Wed, Aug 13, 7:50 AM
Unknown Object (File)
Tue, Aug 5, 12:03 AM
Unknown Object (File)
Sat, Aug 2, 11:36 AM
Subscribers

Details

Summary

Use populate_avail_from_iomem and efi_read_from_sysfs from the
refactored work rather than replicating them (imperfectly) here.

Note: memmap might need to be revisited. EFI memory maps are complex on
x86 and we might need to reconstruct it from /sys/firmware/memmap as
well as using that for the BIOS case, should we ever want to support
that again (hardware makes no sense, but many VM hosting services use
that). For now, we're going all in on EFI, though, and will revisit what
to do about BIOS later. The zfsboot project suggests BIOS support isn't
really that hard (but is a distraction atm).

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63549
Build 60433: arc lint + arc unit