From 6691cae97ef6d23617a32f4c9fec60f6312ec959 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Sat, 20 Mar 2010 06:49:56 +0000 Subject: [PATCH] Fix compile break on IA32 arch. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10292 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c | 2 +- MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c index bc7cfb9c90..61a8fb2023 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c +++ b/MdeModulePkg/Bus/Pci/UhciDxe/Uhci.c @@ -1011,7 +1011,7 @@ Uhci2AsyncInterruptTransfer ( return EFI_OUT_OF_RESOURCES; } - DataPhy = (UINT8 *)UsbHcGetPciAddressForHostMem (Uhc->MemPool, DataPtr, DataLength); + DataPhy = (UINT8 *) (UINTN) UsbHcGetPciAddressForHostMem (Uhc->MemPool, DataPtr, DataLength); OldTpl = gBS->RaiseTPL (UHCI_TPL); diff --git a/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c b/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c index 4d6957d70a..0052fb12c2 100644 --- a/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c +++ b/MdeModulePkg/Bus/Pci/UhciDxe/UhciSched.c @@ -83,7 +83,7 @@ UhciInitFrameList ( // Tell the Host Controller where the Frame List lies, // by set the Frame List Base Address Register. // - UhciSetFrameListBaseAddr (Uhc->PciIo, (VOID *) MappedAddr); + UhciSetFrameListBaseAddr (Uhc->PciIo, (VOID *) (UINTN) MappedAddr); // // Allocate the QH used by sync interrupt/control/bulk transfer. -- 2.39.2