mirror of https://github.com/acidanthera/audk.git
Update BdsDxe to fill int he FirmwareVendor and FirmwareRevision fields of the EFI System Table based on PCD settings
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8849 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6144e7afee
commit
9a6b4de21d
|
@ -169,6 +169,8 @@
|
||||||
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn
|
gEfiMdeModulePkgTokenSpaceGuid.PcdConOutColumn
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdPlatformBootTimeOut
|
||||||
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdBootState
|
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdBootState
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareVendor
|
||||||
|
gEfiMdeModulePkgTokenSpaceGuid.PcdFirmwareRevision
|
||||||
|
|
||||||
[Depex]
|
[Depex]
|
||||||
TRUE
|
TRUE
|
||||||
|
|
|
@ -278,6 +278,7 @@ BdsEntry (
|
||||||
LIST_ENTRY DriverOptionList;
|
LIST_ENTRY DriverOptionList;
|
||||||
LIST_ENTRY BootOptionList;
|
LIST_ENTRY BootOptionList;
|
||||||
UINTN BootNextSize;
|
UINTN BootNextSize;
|
||||||
|
CHAR16 *FirmwareVendor;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Insert the performance probe
|
// Insert the performance probe
|
||||||
|
@ -296,6 +297,19 @@ BdsEntry (
|
||||||
//
|
//
|
||||||
InitializeHotkeyService ();
|
InitializeHotkeyService ();
|
||||||
|
|
||||||
|
//
|
||||||
|
// Fill in FirmwareVendor and FirmwareRevision from PCDs
|
||||||
|
//
|
||||||
|
FirmwareVendor = (CHAR16 *)PcdGetPtr (PcdFirmwareVendor);
|
||||||
|
gST->FirmwareVendor = AllocateRuntimeCopyPool (StrSize (FirmwareVendor), FirmwareVendor);
|
||||||
|
ASSERT (gST->FirmwareVendor != NULL);
|
||||||
|
gST->FirmwareRevision = PcdGet32 (PcdFirmwareRevision);
|
||||||
|
|
||||||
|
//
|
||||||
|
// Fixup Tasble CRC after we updated Firmware Vendor and Revision
|
||||||
|
//
|
||||||
|
gBS->CalculateCrc32 ((VOID *)gST, sizeof(EFI_SYSTEM_TABLE), &gST->Hdr.CRC32);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Do the platform init, can be customized by OEM/IBV
|
// Do the platform init, can be customized by OEM/IBV
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue