mirror of https://github.com/acidanthera/audk.git
Fix ECC issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6142 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
4f57ff1853
commit
d976bf31d4
|
@ -32,7 +32,7 @@ EFI_STATUS
|
|||
EFIAPI
|
||||
PeiGetBootMode (
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||
OUT EFI_BOOT_MODE *BootMode
|
||||
IN OUT EFI_BOOT_MODE *BootMode
|
||||
)
|
||||
{
|
||||
PEI_CORE_INSTANCE *PrivateData;
|
||||
|
|
|
@ -231,9 +231,6 @@ ShadowPeiCore(
|
|||
the BFV location.
|
||||
@param Private Pointer to the private data passed in from caller
|
||||
|
||||
@retval EFI_SUCCESS - Successfully dispatched PEIM.
|
||||
@retval EFI_NOT_FOUND - The dispatch failed.
|
||||
|
||||
**/
|
||||
VOID
|
||||
PeiDispatcher (
|
||||
|
|
|
@ -163,7 +163,7 @@ PeiFindFileEx (
|
|||
FileHeader = (EFI_FFS_FILE_HEADER **)FileHandle;
|
||||
|
||||
FvLength = FwVolHeader->FvLength;
|
||||
if (FwVolHeader->Attributes & EFI_FVB2_ERASE_POLARITY) {
|
||||
if ((FwVolHeader->Attributes & EFI_FVB2_ERASE_POLARITY) != 0) {
|
||||
ErasePolarity = 1;
|
||||
} else {
|
||||
ErasePolarity = 0;
|
||||
|
|
|
@ -78,7 +78,7 @@ PeiImageRead (
|
|||
Destination8 = Buffer;
|
||||
Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset);
|
||||
Length = *ReadSize;
|
||||
while (Length--) {
|
||||
while ((Length--) > 0) {
|
||||
*(Destination8++) = *(Source8++);
|
||||
}
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ EFI_STATUS
|
|||
EFIAPI
|
||||
PeiCore (
|
||||
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
|
||||
IN CONST EFI_PEI_PPI_DESCRIPTOR *PpList,
|
||||
IN CONST EFI_PEI_PPI_DESCRIPTOR *PpiList,
|
||||
IN VOID *Data
|
||||
);
|
||||
|
||||
|
@ -274,9 +274,6 @@ PeimDispatchReadiness (
|
|||
@param SecCoreData Pointer to the data structure containing SEC to PEI handoff data
|
||||
@param PrivateData Pointer to the private data passed in from caller
|
||||
|
||||
@retval EFI_SUCCESS Successfully dispatched PEIM.
|
||||
@retval EFI_NOT_FOUND The dispatch failed.
|
||||
|
||||
**/
|
||||
VOID
|
||||
PeiDispatcher (
|
||||
|
@ -539,7 +536,7 @@ InitializeSecurityServices (
|
|||
);
|
||||
|
||||
/**
|
||||
Verify a Firmware volume
|
||||
Verify a Firmware volume.
|
||||
|
||||
@param CurrentFvAddress Pointer to the current Firmware Volume under consideration
|
||||
|
||||
|
@ -1016,7 +1013,7 @@ InitializeImageServices (
|
|||
Get Fv image from the FV type file, then install FV INFO ppi, Build FV hob.
|
||||
|
||||
@param PeiServices An indirect pointer to the EFI_PEI_SERVICES table published by the PEI Foundation.
|
||||
@param FileHandle File handle of a Fv type file.
|
||||
@param FvFileHandle File handle of a Fv type file.
|
||||
@param AuthenticationState Pointer to attestation authentication state of image.
|
||||
If return 0, means pass security checking.
|
||||
|
||||
|
|
Loading…
Reference in New Issue