MdeModulePkg Core: Propagate PEI-phase FV authentication status to DXE
FV3 HOB was introduced by new (>= 1.5) PI spec, it is intended to be used to propagate PEI-phase FV authentication status to DXE. This patch is to update PeiCore to build FV3 HOB with the authentication status and DxeCore to get the authentication status from FV3 HOB when producing FVB Protocol. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -380,10 +380,43 @@ DxeMain (
|
||||
}
|
||||
}
|
||||
for (Hob.Raw = HobStart; !END_OF_HOB_LIST(Hob); Hob.Raw = GET_NEXT_HOB(Hob)) {
|
||||
if (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_FV2) {
|
||||
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "FV2 Hob 0x%0lx - 0x%0lx\n", Hob.FirmwareVolume2->BaseAddress, Hob.FirmwareVolume2->BaseAddress + Hob.FirmwareVolume2->Length - 1));
|
||||
} else if (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_FV) {
|
||||
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "FV Hob 0x%0lx - 0x%0lx\n", Hob.FirmwareVolume->BaseAddress, Hob.FirmwareVolume->BaseAddress + Hob.FirmwareVolume->Length - 1));
|
||||
if (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_FV) {
|
||||
DEBUG ((
|
||||
DEBUG_INFO | DEBUG_LOAD,
|
||||
"FV Hob 0x%0lx - 0x%0lx\n",
|
||||
Hob.FirmwareVolume->BaseAddress,
|
||||
Hob.FirmwareVolume->BaseAddress + Hob.FirmwareVolume->Length - 1
|
||||
));
|
||||
} else if (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_FV2) {
|
||||
DEBUG ((
|
||||
DEBUG_INFO | DEBUG_LOAD,
|
||||
"FV2 Hob 0x%0lx - 0x%0lx\n",
|
||||
Hob.FirmwareVolume2->BaseAddress,
|
||||
Hob.FirmwareVolume2->BaseAddress + Hob.FirmwareVolume2->Length - 1
|
||||
));
|
||||
DEBUG ((
|
||||
DEBUG_INFO | DEBUG_LOAD,
|
||||
" %g - %g\n",
|
||||
&Hob.FirmwareVolume2->FvName,
|
||||
&Hob.FirmwareVolume2->FileName
|
||||
));
|
||||
} else if (GET_HOB_TYPE (Hob) == EFI_HOB_TYPE_FV3) {
|
||||
DEBUG ((
|
||||
DEBUG_INFO | DEBUG_LOAD,
|
||||
"FV3 Hob 0x%0lx - 0x%0lx - 0x%x - 0x%x\n",
|
||||
Hob.FirmwareVolume3->BaseAddress,
|
||||
Hob.FirmwareVolume3->BaseAddress + Hob.FirmwareVolume3->Length - 1,
|
||||
Hob.FirmwareVolume3->AuthenticationStatus,
|
||||
Hob.FirmwareVolume3->ExtractedFv
|
||||
));
|
||||
if (Hob.FirmwareVolume3->ExtractedFv) {
|
||||
DEBUG ((
|
||||
DEBUG_INFO | DEBUG_LOAD,
|
||||
" %g - %g\n",
|
||||
&Hob.FirmwareVolume3->FvName,
|
||||
&Hob.FirmwareVolume3->FileName
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
DEBUG_CODE_END ();
|
||||
|
Reference in New Issue
Block a user