diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-20 13:33:43 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2008-10-20 13:33:43 +0000 |
commit | d976bf31d460f5e44a2e68f01607dad6844c6ad8 (patch) | |
tree | 4df83c1d9918b90aeccfffacf121f31885036914 /MdeModulePkg | |
parent | 4f57ff1853531d9d93fad2c0bcd29db449e75e60 (diff) | |
download | edk2-d976bf31d460f5e44a2e68f01607dad6844c6ad8.zip edk2-d976bf31d460f5e44a2e68f01607dad6844c6ad8.tar.gz edk2-d976bf31d460f5e44a2e68f01607dad6844c6ad8.tar.bz2 |
Fix ECC issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6142 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/Pei/BootMode/BootMode.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c | 3 | ||||
-rw-r--r-- | MdeModulePkg/Core/Pei/FwVol/FwVol.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Core/Pei/Image/Image.c | 2 | ||||
-rw-r--r-- | MdeModulePkg/Core/Pei/PeiMain.h | 11 |
5 files changed, 7 insertions, 13 deletions
diff --git a/MdeModulePkg/Core/Pei/BootMode/BootMode.c b/MdeModulePkg/Core/Pei/BootMode/BootMode.c index 8c38fa8..74b9052 100644 --- a/MdeModulePkg/Core/Pei/BootMode/BootMode.c +++ b/MdeModulePkg/Core/Pei/BootMode/BootMode.c @@ -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;
diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c index 49b3d36..54b145b 100644 --- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c +++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c @@ -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 (
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c index 37ddb79..807476f 100644 --- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c +++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c @@ -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;
diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c index 25c6330..4918c1a 100644 --- a/MdeModulePkg/Core/Pei/Image/Image.c +++ b/MdeModulePkg/Core/Pei/Image/Image.c @@ -78,7 +78,7 @@ PeiImageRead ( Destination8 = Buffer;
Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset);
Length = *ReadSize;
- while (Length--) {
+ while ((Length--) > 0) {
*(Destination8++) = *(Source8++);
}
diff --git a/MdeModulePkg/Core/Pei/PeiMain.h b/MdeModulePkg/Core/Pei/PeiMain.h index 6f040d0..4e66b71 100644 --- a/MdeModulePkg/Core/Pei/PeiMain.h +++ b/MdeModulePkg/Core/Pei/PeiMain.h @@ -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 (
@@ -500,7 +497,7 @@ EFI_STATUS EFIAPI
PeiGetBootMode (
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
@@ -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.
|