[edk2-devel] [PATCH] UefiPayloadPkg: Dump hob information from boot loader

Ni, Ray ray.ni at intel.com
Thu Jul 1 06:20:42 UTC 2021


+(*HOB_PRINT_HANDLER) (

+  IN  VOID           *Hob,
+  IN  UINTN          Hobsize

1. UINT16?

+

+typedef struct{

+  UINT16               Type;

+  CHAR8                *Name;

+  HOB_PRINT_HANDLER    Function;
2. PrintHandler?

+

+typedef

+EFI_STATUS

+(*GUID_HOB_PRINT) (

+  IN  UINT8          *HobRaw
3. Size parameter is missing?


+  GUID_HOB_PRINT    Function;
4. PrintHandler?

+  CHAR8             *Guidname;
5. GuidName?

+EFI_STATUS

+PrintHex (

+  IN  UINT8         *DataStart,

+  IN  UINTN         DataSize

+  )

+{

+  UINTN  Index1;

+  UINTN  Index2;

+  UINT8  *StartAddr;

+

+  StartAddr = DataStart;

+  for (Index1 = 0; Index1 * 16 < DataSize; Index1++) {
6. define 16 as a macro?


+      Status = GuidHobPrintHandleTable[Index].Function (Hob.Raw);
7. Should supply the remaining size to the Function().



+  PrintHob (mHobList);
8. Use DEBUG_CODE() and make sure PcdReportStatusCodePropertyMask BIT2 is set in DEBUG build and clear in RELEASE build.






-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#77396): https://edk2.groups.io/g/devel/message/77396
Mute This Topic: https://groups.io/mt/83892156/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-






More information about the edk2-devel-archive mailing list