From 2f20bfd98ee40e241924c31b4e08089b3d688317 Mon Sep 17 00:00:00 2001 From: gdong1 Date: Mon, 17 Oct 2016 14:47:07 -0700 Subject: CorebootModulePkg: Add a library to parse platform specific info. Update CbSupportPei to consume the new library, so platform could provide platform specific library instance to parse platform specif info. And add a NULL library instance to pass build. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: gdong1 Reviewed-by: Maurice Ma --- CorebootModulePkg/CbSupportPei/CbSupportPei.c | 9 +++++++++ CorebootModulePkg/CbSupportPei/CbSupportPei.h | 3 ++- CorebootModulePkg/CbSupportPei/CbSupportPei.inf | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) (limited to 'CorebootModulePkg/CbSupportPei') diff --git a/CorebootModulePkg/CbSupportPei/CbSupportPei.c b/CorebootModulePkg/CbSupportPei/CbSupportPei.c index 9d5803449e..80fd611bc8 100755 --- a/CorebootModulePkg/CbSupportPei/CbSupportPei.c +++ b/CorebootModulePkg/CbSupportPei/CbSupportPei.c @@ -387,6 +387,15 @@ CbPeiEntryPoint ( DEBUG ((EFI_D_ERROR, "Create frame buffer info guid hob\n")); } + // + // Parse platform specific information from coreboot. + // + Status = CbParsePlatformInfo (); + if (EFI_ERROR (Status)) { + DEBUG ((EFI_D_ERROR, "Error when parsing platform info, Status = %r\n", Status)); + return Status; + } + // // Mask off all legacy 8259 interrupt sources // diff --git a/CorebootModulePkg/CbSupportPei/CbSupportPei.h b/CorebootModulePkg/CbSupportPei/CbSupportPei.h index 3c9a3fe61e..f897dc4ac5 100644 --- a/CorebootModulePkg/CbSupportPei/CbSupportPei.h +++ b/CorebootModulePkg/CbSupportPei/CbSupportPei.h @@ -1,7 +1,7 @@ /** @file The header file of Coreboot Support PEIM. -Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2014 - 2016, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -28,6 +28,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include #include +#include #include #include diff --git a/CorebootModulePkg/CbSupportPei/CbSupportPei.inf b/CorebootModulePkg/CbSupportPei/CbSupportPei.inf index 4905bdbd8e..f7997ff702 100644 --- a/CorebootModulePkg/CbSupportPei/CbSupportPei.inf +++ b/CorebootModulePkg/CbSupportPei/CbSupportPei.inf @@ -52,6 +52,7 @@ CbParseLib MtrrLib IoLib + CbPlatformSupportLib [Guids] gEfiSmmPeiSmramMemoryReserveGuid -- cgit v1.2.3