REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1614 When we allocate pool to save the rebased PEIMs, the address will change randomly, therefore the hash will change and result PCR0 change as well. To avoid this, we save the raw PEIMs and use it to calculate hash. The MigratedFvInfo HOB will never produce when PcdMigrateTemporaryRamFirmwareVolumes is FALSE, because the PCD control the total feature. Cc: Jian J Wang <jian.j.wang@intel.com> Cc: Hao A Wu <hao.a.wu@intel.com> Cc: Dandan Bi <dandan.bi@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Debkumar De <debkumar.de@intel.com> Cc: Harry Han <harry.han@intel.com> Cc: Catharine West <catharine.west@intel.com> Signed-off-by: Guomin Jiang <guomin.jiang@intel.com> Acked-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
23 lines
597 B
C
23 lines
597 B
C
/** @file
|
|
Migrated FV information
|
|
|
|
Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#ifndef __EDKII_MIGRATED_FV_INFO_GUID_H__
|
|
#define __EDKII_MIGRATED_FV_INFO_GUID_H__
|
|
|
|
typedef struct {
|
|
UINT32 FvOrgBase; // original FV address
|
|
UINT32 FvNewBase; // new FV address
|
|
UINT32 FvDataBase; // original FV data
|
|
UINT32 FvLength; // Fv Length
|
|
} EDKII_MIGRATED_FV_INFO;
|
|
|
|
extern EFI_GUID gEdkiiMigratedFvInfoGuid;
|
|
|
|
#endif // #ifndef __EDKII_MIGRATED_FV_INFO_GUID_H__
|
|
|