]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/DxeHobLib/HobLib.c
Detab
[mirror_edk2.git] / MdePkg / Library / DxeHobLib / HobLib.c
index 810bfa5fbf1d07a4ac151a7940f78c61d61ffa68..2e41453a16a4fbd05ccfbe9f7dfa7d9286c7bc12 100644 (file)
@@ -23,7 +23,7 @@
 #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
@@ -47,7 +47,7 @@ HobLibConstructor (
 {\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
@@ -56,6 +56,7 @@ HobLibConstructor (
 \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
@@ -68,6 +69,7 @@ GetHobList (
   VOID\r
   )\r
 {\r
+  ASSERT (mHobList != NULL);\r
   return mHobList;\r
 }\r
 \r
@@ -218,7 +220,6 @@ GetBootModeHob (
   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