Skip to content

Commit

Permalink
initial upload
Browse files Browse the repository at this point in the history
  • Loading branch information
TaylorBeebe committed Jan 4, 2024
1 parent 0ad607f commit 9f1ab37
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MdeModulePkg/Core/Dxe/Misc/MemoryProtectionSupport.c
Original file line number Diff line number Diff line change
Expand Up @@ -2171,9 +2171,9 @@ SeparateSpecialRegionsInMemoryMap (
{
MapEntryStart = (UINTN)MemoryMapEntry->PhysicalStart;
MapEntryEnd = (UINTN)MemoryMapEntry->PhysicalStart + (UINTN)EFI_PAGES_TO_SIZE (MemoryMapEntry->NumberOfPages);
if ((MapEntryStart <= SpecialRegionStart) && (MapEntryEnd > SpecialRegionStart)) {
// Check if some portion of the map entry isn't covered by the special region
if (MapEntryStart != SpecialRegionStart) {
if (CHECK_OVERLAP (SpecialRegionStart, SpecialRegionEnd, MapEntryStart, MapEntryEnd)) {
// Check if some portion before the map entry isn't covered by the special region
if (MapEntryStart < SpecialRegionStart) {
// Populate a new descriptor for the region before the special region. This entry can go to the end
// of the memory map because the special region list is sorted
POPULATE_MEMORY_DESCRIPTOR_ENTRY (
Expand Down

0 comments on commit 9f1ab37

Please sign in to comment.