#include <Library/DebugLib.h>\r
#include <Library/BaseMemoryLib.h>\r
\r
-STATIC VOID *mHobList = NULL;\r
+VOID *mHobList = NULL;\r
\r
/**\r
The constructor function caches the pointer to HOB list.\r
{\r
EFI_STATUS Status;\r
\r
- Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &mHobList);\r
+ Status = EfiGetSystemConfigurationTable (&gEfiHobListGuid, &mHobList);\r
ASSERT_EFI_ERROR (Status);\r
ASSERT (mHobList != NULL);\r
\r
\r
/**\r
Returns the pointer to the HOB list.\r
+ ASSERT() if the HOB list returned by GetHobList() is NULL.\r
\r
This function returns the pointer to first HOB in the list.\r
\r
VOID\r
)\r
{\r
+ ASSERT (mHobList != NULL);\r
return mHobList;\r
}\r
\r
EFI_HOB_HANDOFF_INFO_TABLE *HandOffHob;\r
\r
HandOffHob = (EFI_HOB_HANDOFF_INFO_TABLE *) GetHobList ();\r
- ASSERT (HandOffHob != NULL);\r
\r
return HandOffHob->BootMode;\r
}\r