summaryrefslogtreecommitdiffstats
path: root/CorebootModulePkg
diff options
context:
space:
mode:
authorLeahy, Leroy P <leroy.p.leahy@intel.com>2016-05-23 08:45:07 -0700
committerMaurice Ma <maurice.ma@intel.com>2016-05-23 13:34:03 -0700
commit60c809f3621039bb1ac6b4c1947baf5a848814b0 (patch)
tree641cf4cac4e710ebe709df914d55540c5fe23a20 /CorebootModulePkg
parent576a07e4fb497823e6e13c356dc9a3d9bc20edf0 (diff)
downloadedk2-60c809f3621039bb1ac6b4c1947baf5a848814b0.tar.gz
edk2-60c809f3621039bb1ac6b4c1947baf5a848814b0.tar.bz2
edk2-60c809f3621039bb1ac6b4c1947baf5a848814b0.zip
CorebootModulePkg/CbSupportDxe: Text only support
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>
Diffstat (limited to 'CorebootModulePkg')
-rwxr-xr-xCorebootModulePkg/CbSupportDxe/CbSupportDxe.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c b/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c
index 7671304753..24bacf815c 100755
--- a/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c
+++ b/CorebootModulePkg/CbSupportDxe/CbSupportDxe.c
@@ -188,16 +188,17 @@ CbDxeEntryPoint (
// Find the frame buffer information and update PCDs
//
GuidHob = GetFirstGuidHob (&gUefiFrameBufferInfoGuid);
- ASSERT (GuidHob != NULL);
- FbInfo = (FRAME_BUFFER_INFO *)GET_GUID_HOB_DATA (GuidHob);
- Status = PcdSet32S (PcdVideoHorizontalResolution, FbInfo->HorizontalResolution);
- ASSERT_EFI_ERROR (Status);
- Status = PcdSet32S (PcdVideoVerticalResolution, FbInfo->VerticalResolution);
- ASSERT_EFI_ERROR (Status);
- Status = PcdSet32S (PcdSetupVideoHorizontalResolution, FbInfo->HorizontalResolution);
- ASSERT_EFI_ERROR (Status);
- Status = PcdSet32S (PcdSetupVideoVerticalResolution, FbInfo->VerticalResolution);
- ASSERT_EFI_ERROR (Status);
+ if (GuidHob != NULL) {
+ FbInfo = (FRAME_BUFFER_INFO *)GET_GUID_HOB_DATA (GuidHob);
+ Status = PcdSet32S (PcdVideoHorizontalResolution, FbInfo->HorizontalResolution);
+ ASSERT_EFI_ERROR (Status);
+ Status = PcdSet32S (PcdVideoVerticalResolution, FbInfo->VerticalResolution);
+ ASSERT_EFI_ERROR (Status);
+ Status = PcdSet32S (PcdSetupVideoHorizontalResolution, FbInfo->HorizontalResolution);
+ ASSERT_EFI_ERROR (Status);
+ Status = PcdSet32S (PcdSetupVideoVerticalResolution, FbInfo->VerticalResolution);
+ ASSERT_EFI_ERROR (Status);
+ }
//
// Register callback on the ready to boot event