From 67a58d0ffddc625bda615b9fb2b335e8d7ab979f Mon Sep 17 00:00:00 2001 From: yshang1 Date: Tue, 9 Oct 2007 09:30:52 +0000 Subject: Clean up Network Components to support GCC build. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4062 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/DxeIplPeim/DxeLoad.c | 2 +- MdeModulePkg/Core/Pei/FwVol/FwVol.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'MdeModulePkg/Core') diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c index 1359fe9..32474cb 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c +++ b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c @@ -346,7 +346,7 @@ DxeIplAddEncapsulatedFirmwareVolumes ( PeiServicesFfsGetVolumeInfo (&VolumeHandle, &VolumeInfo); PeiPiLibBuildPiFvInfoPpi ( - (EFI_PHYSICAL_ADDRESS) FvHeader, + (EFI_PHYSICAL_ADDRESS) (UINTN) FvHeader, FvHeader->FvLength, &(VolumeInfo.FvName), &(((EFI_FFS_FILE_HEADER*)FileHandle)->Name) diff --git a/MdeModulePkg/Core/Pei/FwVol/FwVol.c b/MdeModulePkg/Core/Pei/FwVol/FwVol.c index 958263b..34fe0a1 100644 --- a/MdeModulePkg/Core/Pei/FwVol/FwVol.c +++ b/MdeModulePkg/Core/Pei/FwVol/FwVol.c @@ -142,8 +142,8 @@ PeiFileHandleToVolume ( PrivateData = PEI_CORE_INSTANCE_FROM_PS_THIS (GetPeiServicesTablePointer ()); for (Index = 0; Index < PrivateData->FvCount; Index++) { FwVolHeader = PrivateData->Fv[Index].FvHeader; - if (((UINT64) FileHandle > (UINT64) FwVolHeader ) && \ - ((UINT64) FileHandle <= ((UINT64) FwVolHeader + FwVolHeader->FvLength - 1))) { + if (((UINT64) (UINTN) FileHandle > (UINT64) (UINTN) FwVolHeader ) && \ + ((UINT64) (UINTN) FileHandle <= ((UINT64) (UINTN) FwVolHeader + FwVolHeader->FvLength - 1))) { *VolumeHandle = (EFI_PEI_FV_HANDLE)FwVolHeader; return TRUE; } -- cgit v1.1