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:
@ -32,7 +32,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiGetBootMode (
|
PeiGetBootMode (
|
||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
OUT EFI_BOOT_MODE *BootMode
|
IN OUT EFI_BOOT_MODE *BootMode
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
PEI_CORE_INSTANCE *PrivateData;
|
PEI_CORE_INSTANCE *PrivateData;
|
||||||
|
@ -231,9 +231,6 @@ ShadowPeiCore(
|
|||||||
the BFV location.
|
the BFV location.
|
||||||
@param Private Pointer to the private data passed in from caller
|
@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
|
VOID
|
||||||
PeiDispatcher (
|
PeiDispatcher (
|
||||||
|
@ -163,7 +163,7 @@ PeiFindFileEx (
|
|||||||
FileHeader = (EFI_FFS_FILE_HEADER **)FileHandle;
|
FileHeader = (EFI_FFS_FILE_HEADER **)FileHandle;
|
||||||
|
|
||||||
FvLength = FwVolHeader->FvLength;
|
FvLength = FwVolHeader->FvLength;
|
||||||
if (FwVolHeader->Attributes & EFI_FVB2_ERASE_POLARITY) {
|
if ((FwVolHeader->Attributes & EFI_FVB2_ERASE_POLARITY) != 0) {
|
||||||
ErasePolarity = 1;
|
ErasePolarity = 1;
|
||||||
} else {
|
} else {
|
||||||
ErasePolarity = 0;
|
ErasePolarity = 0;
|
||||||
|
@ -78,7 +78,7 @@ PeiImageRead (
|
|||||||
Destination8 = Buffer;
|
Destination8 = Buffer;
|
||||||
Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset);
|
Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset);
|
||||||
Length = *ReadSize;
|
Length = *ReadSize;
|
||||||
while (Length--) {
|
while ((Length--) > 0) {
|
||||||
*(Destination8++) = *(Source8++);
|
*(Destination8++) = *(Source8++);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiCore (
|
PeiCore (
|
||||||
IN CONST EFI_SEC_PEI_HAND_OFF *SecCoreData,
|
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
|
IN VOID *Data
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -274,9 +274,6 @@ PeimDispatchReadiness (
|
|||||||
@param SecCoreData Pointer to the data structure containing SEC to PEI handoff data
|
@param SecCoreData Pointer to the data structure containing SEC to PEI handoff data
|
||||||
@param PrivateData Pointer to the private data passed in from caller
|
@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
|
VOID
|
||||||
PeiDispatcher (
|
PeiDispatcher (
|
||||||
@ -500,7 +497,7 @@ EFI_STATUS
|
|||||||
EFIAPI
|
EFIAPI
|
||||||
PeiGetBootMode (
|
PeiGetBootMode (
|
||||||
IN CONST EFI_PEI_SERVICES **PeiServices,
|
IN CONST EFI_PEI_SERVICES **PeiServices,
|
||||||
IN OUT EFI_BOOT_MODE *BootMode
|
IN OUT EFI_BOOT_MODE *BootMode
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -539,7 +536,7 @@ InitializeSecurityServices (
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Verify a Firmware volume
|
Verify a Firmware volume.
|
||||||
|
|
||||||
@param CurrentFvAddress Pointer to the current Firmware Volume under consideration
|
@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.
|
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 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.
|
@param AuthenticationState Pointer to attestation authentication state of image.
|
||||||
If return 0, means pass security checking.
|
If return 0, means pass security checking.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user