Page MenuHomeFreeBSD

riscv: parse memory regions from EFI map header
ClosedPublic

Authored by mhorne on Feb 25 2025, 6:10 PM.
Tags
None
Referenced Files
F132609510: D49131.diff
Sat, Oct 18, 9:50 AM
Unknown Object (File)
Fri, Oct 3, 9:16 PM
Unknown Object (File)
Fri, Oct 3, 12:57 AM
Unknown Object (File)
Wed, Sep 24, 7:33 AM
Unknown Object (File)
Sep 7 2025, 5:52 PM
Unknown Object (File)
Sep 7 2025, 9:56 AM
Unknown Object (File)
Sep 4 2025, 10:45 AM
Unknown Object (File)
Sep 2 2025, 11:08 AM
Subscribers

Details

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 Not Applicable
Unit
Tests Not Applicable