UINT8 NodeType;\r
EFI_BOOT_MODE BootMode;\r
CHAR8 *GmaStr;\r
+ INTN NumRsv;\r
+ EFI_PHYSICAL_ADDRESS Addr;\r
+ UINT64 Size;\r
UINT16 SegmentNumber;\r
UINT64 CurrentPciBaseAddress;\r
UINT64 NextPciBaseAddress;\r
}\r
}\r
\r
+ NumRsv = FdtNumRsv (Fdt);\r
+ /* Look for an existing entry and add it to the efi mem map. */\r
+ for (index = 0; index < NumRsv; index++) {\r
+ if (FdtGetMemRsv (Fdt, index, &Addr, &Size) != 0) {\r
+ continue;\r
+ }\r
+\r
+ BuildMemoryAllocationHob (Addr, Size, EfiReservedMemoryType);\r
+ }\r
+\r
index = RootBridgeCount - 1;\r
Depth = 0;\r
for (Node = FdtNextNode (Fdt, 0, &Depth); Node >= 0; Node = FdtNextNode (Fdt, Node, &Depth)) {\r