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
Unknown Object (File)
Thu, Apr 10, 10:21 PM
Unknown Object (File)
Tue, Apr 8, 2:44 AM
Unknown Object (File)
Mon, Apr 7, 3:33 PM
Unknown Object (File)
Wed, Apr 2, 7:43 PM
Unknown Object (File)
Fri, Mar 28, 7:49 AM
Unknown Object (File)
Fri, Mar 28, 5:27 AM
Unknown Object (File)
Mon, Mar 24, 1:15 PM
Unknown Object (File)
Mar 22 2025, 12:16 PM
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