Add more checks for Dxe Report status code library to access boot service.

Add measure to GPT boot table.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7846 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2009-03-10 07:54:11 +00:00
parent 9d3dae3911
commit 07d97279a3
4 changed files with 17 additions and 2 deletions

View File

@ -146,6 +146,7 @@ BdsLibBootViaBootOption (
EFI_DEVICE_PATH_PROTOCOL *WorkingDevicePath;
EFI_ACPI_S3_SAVE_PROTOCOL *AcpiS3Save;
LIST_ENTRY TempBootLists;
EFI_SECURITY_ARCH_PROTOCOL *SecurityProtocol;
//
// Record the performance data for End of BDS
@ -241,6 +242,18 @@ BdsLibBootViaBootOption (
DevicePath = Option->DevicePath;
}
//
// Measure GPT Table by SAP protocol.
//
Status = gBS->LocateProtocol (
&gEfiSecurityArchProtocolGuid,
NULL,
&SecurityProtocol
);
if (!EFI_ERROR (Status)) {
Status = SecurityProtocol->FileAuthenticationState (SecurityProtocol, 0, DevicePath);
}
DEBUG ((DEBUG_INFO | DEBUG_LOAD, "Booting %S\n", Option->Description));
Status = gBS->LoadImage (