This driver will report some MMIO/IO resources to dxe core, extract smbios and acpi\r
tables from bootloader.\r
\r
- Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
ASSERT_EFI_ERROR (Status);\r
}\r
\r
- //\r
- // Install Smbios Table\r
- //\r
- if (SystemTableInfo->SmbiosTableBase != 0 && SystemTableInfo->SmbiosTableSize != 0) {\r
- DEBUG ((DEBUG_ERROR, "Install Smbios Table at 0x%lx, length 0x%x\n", SystemTableInfo->SmbiosTableBase, SystemTableInfo->SmbiosTableSize));\r
- Status = gBS->InstallConfigurationTable (&gEfiSmbiosTableGuid, (VOID *)(UINTN)SystemTableInfo->SmbiosTableBase);\r
- ASSERT_EFI_ERROR (Status);\r
- }\r
-\r
//\r
// Find the frame buffer information and update PCDs\r
//\r
#\r
# Report some MMIO/IO resources to dxe core, extract smbios and acpi tables\r
#\r
-# Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
\r
[Guids]\r
gEfiAcpiTableGuid\r
- gEfiSmbiosTableGuid\r
gUefiSystemTableInfoGuid\r
gUefiAcpiBoardInfoGuid\r
gEfiGraphicsInfoHobGuid\r
/** @file\r
\r
- Copyright (c) 2014 - 2020, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2014 - 2021, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
EFI_PEI_GRAPHICS_INFO_HOB *NewGfxInfo;\r
EFI_PEI_GRAPHICS_DEVICE_INFO_HOB GfxDeviceInfo;\r
EFI_PEI_GRAPHICS_DEVICE_INFO_HOB *NewGfxDeviceInfo;\r
+ UNIVERSAL_PAYLOAD_SMBIOS_TABLE *SmBiosTableHob;\r
\r
//\r
// Parse memory info and build memory HOBs\r
DEBUG ((DEBUG_INFO, "Detected Acpi Table at 0x%lx, length 0x%x\n", SysTableInfo.AcpiTableBase, SysTableInfo.AcpiTableSize));\r
DEBUG ((DEBUG_INFO, "Detected Smbios Table at 0x%lx, length 0x%x\n", SysTableInfo.SmbiosTableBase, SysTableInfo.SmbiosTableSize));\r
}\r
+ //\r
+ // Creat SmBios table Hob\r
+ //\r
+ SmBiosTableHob = BuildGuidHob (&gUniversalPayloadSmbiosTableGuid, sizeof (UNIVERSAL_PAYLOAD_SMBIOS_TABLE));\r
+ ASSERT (SmBiosTableHob != NULL);\r
+ SmBiosTableHob->Header.Revision = UNIVERSAL_PAYLOAD_SMBIOS_TABLE_REVISION;\r
+ SmBiosTableHob->Header.Length = sizeof (UNIVERSAL_PAYLOAD_SMBIOS_TABLE);\r
+ SmBiosTableHob->SmBiosEntryPoint = SysTableInfo.SmbiosTableBase;\r
+ DEBUG ((DEBUG_INFO, "Create smbios table gUniversalPayloadSmbiosTableGuid guid hob\n"));\r
\r
//\r
// Create guid hob for acpi board information\r
/** @file\r
*\r
-* Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
+* Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>\r
*\r
* SPDX-License-Identifier: BSD-2-Clause-Patent\r
*\r
#include <Guid/MemoryMapInfoGuid.h>\r
#include <Guid/AcpiBoardInfoGuid.h>\r
#include <Guid/GraphicsInfoHob.h>\r
+#include <UniversalPayload/SmbiosTable.h>\r
\r
\r
#define LEGACY_8259_MASK_REGISTER_MASTER 0x21\r
## @file\r
# This is the first module for UEFI payload.\r
#\r
-# Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>\r
# Copyright (c) 2017, AMD Incorporated. All rights reserved.<BR>\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
gEfiGraphicsInfoHobGuid\r
gEfiGraphicsDeviceInfoHobGuid\r
gUefiAcpiBoardInfoGuid\r
+ gUniversalPayloadSmbiosTableGuid\r
\r
[FeaturePcd.IA32]\r
gEfiMdeModulePkgTokenSpaceGuid.PcdDxeIplSwitchToLongMode ## CONSUMES\r