-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DasharoPayloadPkg/BlSupportPei: fix PEI memory range discovery code
Previously, the code chose the highest non-reserved RAM region below 4G mark, regardless of its size. If the memory is fragmented, this may result in failed memory allocation further down the line. Skip regions smaller than PeiMemSize as defined in BlPeiEntryPoint. This commit also fixes the MTRR setting that used the end of last non-reserved RAM region, instead of all RAM regions. This may result in running out of available MTRRs in some cases due to alignment. Now, the first MMIO region above 1M is used to determine where WB ends and UC begins. Signed-off-by: Krystian Hebel <[email protected]>
1 parent
d73ef59
commit 3b25f11
Showing
1 changed file
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters