- HobLength = (AlignedMemory - Memory); \r
- Hob.MemoryAllocation->AllocDescriptor.MemoryLength = HobLength;\r
- Hob.MemoryAllocation->AllocDescriptor.MemoryType = EfiConventionalMemory;\r
- }\r
-\r
- HobBaseAddress = Hob.MemoryAllocation->AllocDescriptor.MemoryBaseAddress;\r
- HobMemoryType = Hob.MemoryAllocation->AllocDescriptor.MemoryType;\r
-\r
- //\r
- // Build the aligned mem HOB if needed\r
- //\r
- if (!SkipBeforeMemHob) {\r
- DEBUG((DEBUG_INFO, "Updated before-mem HOB with BaseAddress = %LX, Length = %LX, MemoryType = %d \n",\r
- HobBaseAddress, HobLength, (UINTN) HobMemoryType));\r
-\r
- HobBaseAddress = AlignedMemory;\r
- HobLength = EFI_PAGES_TO_SIZE(Pages);\r
- HobMemoryType = MemoryType;\r
-\r
- BuildMemoryAllocationHob (\r
- HobBaseAddress,\r
- HobLength,\r
- HobMemoryType\r
- );\r
-\r
- DEBUG((DEBUG_INFO, "Created aligned-mem HOB with BaseAddress = %LX, Length = %LX, MemoryType = %d \n",\r
- HobBaseAddress, HobLength, (UINTN) HobMemoryType));\r
- } else {\r
- if (HobBaseAddress != 0) {\r
- DEBUG((DEBUG_INFO, "Updated aligned-mem HOB with BaseAddress = %LX, Length = %LX, MemoryType = %d \n",\r
- HobBaseAddress, HobLength, (UINTN) HobMemoryType));\r