HomeFreeBSD

amd64: allow the mapping of other regions for efirt

Description

amd64: allow the mapping of other regions for efirt

Some BIOSes access data outside of regions marked as "runtime" in their
runtime EFI functions. Allow the mapping and preservation of other
regions through a tunable.

The tunable is a bitmap specifying the regions to map. e.g bit 3 would
be set to map BootServicesCode.

Currently allowed regions are:
BootServicesCode
BootServicesData
RuntimeServicesCode
RuntimeServicesData
ACPIMemoryNVS

PR: 287422
Reviewed by: kib
Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D51146

Details

Provenance
vexeduxrAuthored on Jul 6 2025, 7:10 PM
Reviewer
kib
Differential Revision
D51146: amd64: allow the mapping of other regions for efirt
Parents
rGefe5907279e1: amd64: fix physmap entry addition logic
Branches
Unknown
Tags
Unknown