Page MenuHomeFreeBSD

riscv: parse memory regions from EFI map header
Needs ReviewPublic

Authored by mhorne on Tue, Feb 25, 6:10 PM.
Tags
None
Referenced Files
F111418418: D49131.id151485.diff
Mon, Mar 3, 12:52 PM
F111344987: D49131.id.diff
Sun, Mar 2, 3:49 PM
F111343592: D49131.diff
Sun, Mar 2, 3:24 PM
Unknown Object (File)
Sat, Mar 1, 7:24 AM
Unknown Object (File)
Wed, Feb 26, 10:59 AM
Subscribers

Details

Reviewers
None
Group Reviewers
riscv
Summary

Using the newly isolated efi_map interface.

The primary goal is a greater adherence to the EFI firmware's view of
memory, and protection of its reserved regions. This is a better source
of truth than the device tree.

For example, regions marked as RuntimeServicesData must be excluded from
general memory allocations for EFI runtime services to eventually be
enabled on the platform (planned but not currently in progress).

The secondary impact is when loading a new/custom device tree via
loader(8); use of the EFI map ensures that reservations made by firmware
(OpenSBI, u-boot) are maintained.

Diff Detail

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