Status = XenGetE820Map (&E820Map, &E820EntriesCount);\r
ASSERT_EFI_ERROR (Status);\r
\r
+ AddMemoryBaseSizeHob (0, 0xA0000);\r
+ //\r
+ // Video memory + Legacy BIOS region, to allow Linux to boot.\r
+ //\r
+ AddReservedMemoryBaseSizeHob (0xA0000, BASE_1MB - 0xA0000, TRUE);\r
+\r
LapicBase = PcdGet32 (PcdCpuLocalApicBaseAddress);\r
LapicEnd = LapicBase + SIZE_1MB;\r
AddIoMemoryRangeHob (LapicBase, LapicEnd);\r
Base = ALIGN_VALUE (Entry->BaseAddr, (UINT64)EFI_PAGE_SIZE);\r
End = (Entry->BaseAddr + Entry->Length) & ~(UINT64)EFI_PAGE_MASK;\r
\r
+ //\r
+ // Ignore the first 1MB, this is handled before the loop.\r
+ //\r
+ if (Base < BASE_1MB) {\r
+ Base = BASE_1MB;\r
+ }\r
+ if (Base >= End) {\r
+ continue;\r
+ }\r
+\r
switch (Entry->Type) {\r
case EfiAcpiAddressRangeMemory:\r
AddMemoryRangeHob (Base, End);\r