]> git.proxmox.com Git - mirror_edk2.git/commitdiff
CorebootModulePkg/CbSupportDxe: Text only support
authorLeahy, Leroy P <leroy.p.leahy@intel.com>
Mon, 23 May 2016 15:45:07 +0000 (08:45 -0700)
committerMaurice Ma <maurice.ma@intel.com>
Mon, 23 May 2016 20:34:03 +0000 (13:34 -0700)
Not all platforms have or support graphics.  The ASSERT that the
frame buffer HOB is not NULL is fatal for these platforms.  Convert
this into an if statement and make the related PcdSet* calls c
onditional on locating the frame buffer HOB.

Change-Id: Ibdc4bf5359571f3ce1555efcaf4657b8e363b2cd
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
CorebootModulePkg/CbSupportDxe/CbSupportDxe.c

index 7671304753242ad0d51c550a60466ce2a8efcaef..24bacf815c021c34eef18b9495e97c128be7ada1 100755 (executable)
@@ -188,16 +188,17 @@ CbDxeEntryPoint (
   // Find the frame buffer information and update PCDs\r
   //\r
   GuidHob = GetFirstGuidHob (&gUefiFrameBufferInfoGuid);\r
-  ASSERT (GuidHob != NULL);\r
-  FbInfo  = (FRAME_BUFFER_INFO *)GET_GUID_HOB_DATA (GuidHob);\r
-  Status = PcdSet32S (PcdVideoHorizontalResolution, FbInfo->HorizontalResolution);\r
-  ASSERT_EFI_ERROR (Status);\r
-  Status = PcdSet32S (PcdVideoVerticalResolution, FbInfo->VerticalResolution);\r
-  ASSERT_EFI_ERROR (Status);\r
-  Status = PcdSet32S (PcdSetupVideoHorizontalResolution, FbInfo->HorizontalResolution);\r
-  ASSERT_EFI_ERROR (Status);\r
-  Status = PcdSet32S (PcdSetupVideoVerticalResolution, FbInfo->VerticalResolution);\r
-  ASSERT_EFI_ERROR (Status);\r
+  if (GuidHob != NULL) {\r
+    FbInfo  = (FRAME_BUFFER_INFO *)GET_GUID_HOB_DATA (GuidHob);\r
+    Status = PcdSet32S (PcdVideoHorizontalResolution, FbInfo->HorizontalResolution);\r
+    ASSERT_EFI_ERROR (Status);\r
+    Status = PcdSet32S (PcdVideoVerticalResolution, FbInfo->VerticalResolution);\r
+    ASSERT_EFI_ERROR (Status);\r
+    Status = PcdSet32S (PcdSetupVideoHorizontalResolution, FbInfo->HorizontalResolution);\r
+    ASSERT_EFI_ERROR (Status);\r
+    Status = PcdSet32S (PcdSetupVideoVerticalResolution, FbInfo->VerticalResolution);\r
+    ASSERT_EFI_ERROR (Status);\r
+  }\r
 \r
   //\r
   // Register callback on the ready to boot event\r