UefiPayloadPkg: Add SmmStoreInfoGuid
Add a new InfoHob that contains the SmmStore information passed from coreboot tables when the SMMSTOREV2 feature is enabled. This will be used to implement the FVB in top of the MM installed by coreboot. Cc: Guo Dong <guo.dong@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Maurice Ma <maurice.ma@intel.com> Cc: Benjamin You <benjamin.you@intel.com> Cc: Sean Rhodes <sean@starlabs.systems> Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Change-Id: Ia3f7eef27d4758768c1a6736afe1cb77ee6a2f8f
This commit is contained in:
committed by
Tim Crawford
parent
bb19b4bc30
commit
13dd54ae32
@@ -259,6 +259,8 @@ BuildHobFromBl (
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
ACPI_BOARD_INFO *AcpiBoardInfo;
|
||||
SMMSTORE_INFO SmmStoreInfo;
|
||||
SMMSTORE_INFO *NewSmmStoreInfo;
|
||||
EFI_PEI_GRAPHICS_INFO_HOB GfxInfo;
|
||||
EFI_PEI_GRAPHICS_INFO_HOB *NewGfxInfo;
|
||||
EFI_PEI_GRAPHICS_DEVICE_INFO_HOB GfxDeviceInfo;
|
||||
@@ -305,6 +307,17 @@ BuildHobFromBl (
|
||||
DEBUG ((DEBUG_INFO, "Created graphics device info hob\n"));
|
||||
}
|
||||
|
||||
//
|
||||
// Create guid hob for SmmStore
|
||||
//
|
||||
Status = ParseSmmStoreInfo (&SmmStoreInfo);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
NewSmmStoreInfo = BuildGuidHob (&gEfiSmmStoreInfoHobGuid, sizeof (SmmStoreInfo));
|
||||
ASSERT (NewSmmStoreInfo != NULL);
|
||||
CopyMem (NewSmmStoreInfo, &SmmStoreInfo, sizeof (SmmStoreInfo));
|
||||
DEBUG ((DEBUG_INFO, "Created SmmStore info hob\n"));
|
||||
}
|
||||
|
||||
//
|
||||
// Creat SmBios table Hob
|
||||
//
|
||||
|
@@ -22,6 +22,7 @@
|
||||
#include <Library/IoLib.h>
|
||||
#include <Library/PeCoffLib.h>
|
||||
#include <Library/BlParseLib.h>
|
||||
#include <Library/SmmStoreParseLib.h>
|
||||
#include <Library/PlatformSupportLib.h>
|
||||
#include <Library/CpuLib.h>
|
||||
#include <Library/UefiCpuLib.h>
|
||||
@@ -37,6 +38,7 @@
|
||||
#include <UniversalPayload/ExtraData.h>
|
||||
#include <UniversalPayload/SerialPortInfo.h>
|
||||
#include <Guid/PcdDataBaseSignatureGuid.h>
|
||||
#include <Guid/SmmStoreInfoGuid.h>
|
||||
|
||||
#define LEGACY_8259_MASK_REGISTER_MASTER 0x21
|
||||
#define LEGACY_8259_MASK_REGISTER_SLAVE 0xA1
|
||||
|
@@ -66,6 +66,7 @@
|
||||
gUniversalPayloadSmbiosTableGuid
|
||||
gUniversalPayloadAcpiTableGuid
|
||||
gUniversalPayloadSerialPortInfoGuid
|
||||
gEfiSmmStoreInfoHobGuid
|
||||
|
||||
[FeaturePcd.IA32]
|
||||
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode ## CONSUMES
|
||||
|
Reference in New Issue
Block a user