summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-10 03:32:08 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-10 03:32:08 +0000
commit173b35e4694885abec8f72a2ac6bdb9aa1ab15ca (patch)
tree8f964a532984ab1c3ea9725ad5a1c43f7476a6a1 /MdeModulePkg
parentc63cd426a8ed53070d32260a94d5d99bf0ec2c83 (diff)
downloadedk2-platforms-173b35e4694885abec8f72a2ac6bdb9aa1ab15ca.tar.xz
Fix GCC building issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4808 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c2
-rw-r--r--MdeModulePkg/Core/Pei/FwVol/FwVol.c1
-rw-r--r--MdeModulePkg/Core/Pei/Memory/MemoryServices.c6
3 files changed, 2 insertions, 7 deletions
diff --git a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
index 407535408f..a5dce2b5aa 100644
--- a/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
+++ b/MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c
@@ -550,7 +550,7 @@ Returns:
// Update HandOffHob for new installed permenent memory
//
NewHandOffTable->EfiEndOfHobList =
- (EFI_PHYSICAL_ADDRESS)(VOID*)((UINTN) NewHandOffTable->EfiEndOfHobList + Offset);
+ (EFI_PHYSICAL_ADDRESS)((UINTN) NewHandOffTable->EfiEndOfHobList + Offset);
NewHandOffTable->EfiMemoryTop = PrivateInMem->PhysicalMemoryBegin +
PrivateInMem->PhysicalMemoryLength;
NewHandOffTable->EfiMemoryBottom = PrivateInMem->PhysicalMemoryBegin;
diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
index 358889213e..4947912535 100644
--- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c
+++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c
@@ -774,6 +774,7 @@ Returns:
return EFI_INVALID_PARAMETER;
}
+ VolumeHandle = 0;
//
// Retrieve the FirmwareVolume which the file resides in.
//
diff --git a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c
index 457804fef2..a64bb3c633 100644
--- a/MdeModulePkg/Core/Pei/Memory/MemoryServices.c
+++ b/MdeModulePkg/Core/Pei/Memory/MemoryServices.c
@@ -21,12 +21,6 @@ Abstract:
#include <PeiMain.h>
-static EFI_PEI_PPI_DESCRIPTOR mMemoryDiscoveredPpi = {
- (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
- &gEfiPeiMemoryDiscoveredPpiGuid,
- NULL
-};
-
VOID
InitializeMemoryServices (
IN PEI_CORE_INSTANCE *PrivateData,