\r
Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>\r
Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+ (C) Copyright 2015 Hewlett Packard Enterprise Development LP<BR>\r
\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
**/\r
\r
#include "Ebl.h"\r
-// BugBug: Autogen does not allow this to be included currently \r
+// BugBug: Autogen does not allow this to be included currently\r
//#include <EdkModulePkg/Include/EdkDxe.h>\r
\r
GLOBAL_REMOVE_IF_UNREFERENCED char *mHobResourceType[] = {\r
Argv[0] - "hob"\r
\r
@param Argc Number of command arguments in Argv\r
- @param Argv Array of strings that represent the parsed command line. \r
+ @param Argv Array of strings that represent the parsed command line.\r
Argv[0] is the command name\r
\r
@return EFI_SUCCESS\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
EblHobCmd (\r
IN UINTN Argc,\r
IN CHAR8 **Argv\r
CurrentRow = 0;\r
for (Hob.Raw = GetHobList (); !END_OF_HOB_LIST(Hob); Hob.Raw = GET_NEXT_HOB(Hob)) {\r
if (Hob.Header->HobType == EFI_HOB_TYPE_HANDOFF) {\r
- AsciiPrint ("PHIT HOB Ver %x Boot Mode %02x Top %lx Bottom %lx\n", \r
- Hob.HandoffInformationTable->Version, \r
- Hob.HandoffInformationTable->BootMode, \r
+ AsciiPrint ("PHIT HOB Ver %x Boot Mode %02x Top %lx Bottom %lx\n",\r
+ Hob.HandoffInformationTable->Version,\r
+ Hob.HandoffInformationTable->BootMode,\r
Hob.HandoffInformationTable->EfiMemoryTop,\r
Hob.HandoffInformationTable->EfiMemoryBottom\r
);\r
return EFI_SUCCESS;\r
}\r
\r
- AsciiPrint (" Free Top %lx Free Bottom %lx End Of HOB %lx\n", \r
+ AsciiPrint (" Free Top %lx Free Bottom %lx End Of HOB %lx\n",\r
Hob.HandoffInformationTable->EfiFreeMemoryTop,\r
Hob.HandoffInformationTable->EfiFreeMemoryBottom,\r
Hob.HandoffInformationTable->EfiEndOfHobList\r
} else if (Hob.Header->HobType == EFI_HOB_TYPE_MEMORY_ALLOCATION) {\r
// mod(%) on array index is just to prevent buffer overrun\r
AsciiPrint ("Mem Alloc HOB %a %g %08lx:%lx\n",\r
- (Hob.MemoryAllocation->AllocDescriptor.MemoryType < EfiMaxMemoryType) ? gMemMapType[Hob.MemoryAllocation->AllocDescriptor.MemoryType] : "ILLEGAL TYPE", \r
- &Hob.MemoryAllocation->AllocDescriptor.Name, \r
- Hob.MemoryAllocation->AllocDescriptor.MemoryBaseAddress, \r
+ (Hob.MemoryAllocation->AllocDescriptor.MemoryType < EfiMaxMemoryType) ? gMemMapType[Hob.MemoryAllocation->AllocDescriptor.MemoryType] : "ILLEGAL TYPE",\r
+ &Hob.MemoryAllocation->AllocDescriptor.Name,\r
+ Hob.MemoryAllocation->AllocDescriptor.MemoryBaseAddress,\r
Hob.MemoryAllocation->AllocDescriptor.MemoryLength\r
);\r
if (CompareGuid (&gEfiHobMemoryAllocModuleGuid, &Hob.MemoryAllocation->AllocDescriptor.Name)) {\r
} else if (Hob.Header->HobType == EFI_HOB_TYPE_RESOURCE_DESCRIPTOR) {\r
AsciiPrint ("Resource HOB %a %g %08lx:%lx\n Attributes: %08x\n",\r
(Hob.ResourceDescriptor->ResourceType < EFI_RESOURCE_MAX_MEMORY_TYPE) ? mHobResourceType[Hob.ResourceDescriptor->ResourceType] : mHobResourceType[EFI_RESOURCE_MAX_MEMORY_TYPE],\r
- &Hob.ResourceDescriptor->Owner, \r
- Hob.ResourceDescriptor->PhysicalStart, \r
- Hob.ResourceDescriptor->ResourceLength, \r
+ &Hob.ResourceDescriptor->Owner,\r
+ Hob.ResourceDescriptor->PhysicalStart,\r
+ Hob.ResourceDescriptor->ResourceLength,\r
Hob.ResourceDescriptor->ResourceAttribute\r
);\r
if (EblAnyKeyToContinueQtoQuit (&CurrentRow, FALSE)) {\r
if (EblAnyKeyToContinueQtoQuit (&CurrentRow, FALSE)) {\r
return EFI_SUCCESS;\r
}\r
- AsciiPrint (" %a 0x%08x\n", \r
- (EfiMemoryTypeInformation->Type < EfiMaxMemoryType) ? gMemMapType[EfiMemoryTypeInformation->Type] : "END ", \r
+ AsciiPrint (" %a 0x%08x\n",\r
+ (EfiMemoryTypeInformation->Type < EfiMaxMemoryType) ? gMemMapType[EfiMemoryTypeInformation->Type] : "END ",\r
EfiMemoryTypeInformation->NumberOfPages\r
);\r
}\r
}\r
} else if (Hob.Header->HobType == EFI_HOB_TYPE_FV) {\r
- AsciiPrint ("FV HOB %08lx:%08lx\n", Hob.FirmwareVolume->BaseAddress, Hob.FirmwareVolume->Length); \r
+ AsciiPrint ("FV HOB %08lx:%08lx\n", Hob.FirmwareVolume->BaseAddress, Hob.FirmwareVolume->Length);\r
} else if (Hob.Header->HobType == EFI_HOB_TYPE_CPU) {\r
- AsciiPrint ("CPU HOB: Mem %x IO %x\n", Hob.Cpu->SizeOfMemorySpace, Hob.Cpu->SizeOfIoSpace); \r
+ AsciiPrint ("CPU HOB: Mem %x IO %x\n", Hob.Cpu->SizeOfMemorySpace, Hob.Cpu->SizeOfIoSpace);\r
} else if (Hob.Header->HobType == EFI_HOB_TYPE_MEMORY_POOL) {\r
AsciiPrint ("Mem Pool HOB:\n");\r
/* Not in PI\r
\r
if (EblAnyKeyToContinueQtoQuit (&CurrentRow, FALSE)) {\r
break;\r
- } \r
+ }\r
}\r
\r
return EFI_SUCCESS;\r