From: John Hodge Date: Thu, 9 Aug 2012 14:44:17 +0000 (+0800) Subject: USB - Fixed compile errors for x86_64 X-Git-Tag: rel0.15~706^2~50 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;ds=sidebyside;h=d1d36767ced3086d0726a169a088b6de67716fae;hp=8b123f0fb5dc6cbd61fab6784b3ffab8228bfff5;p=tpg%2Facess2.git USB - Fixed compile errors for x86_64 --- diff --git a/KernelLand/Modules/USB/EHCI/ehci.c b/KernelLand/Modules/USB/EHCI/ehci.c index 14b1cfa1..8a316e35 100644 --- a/KernelLand/Modules/USB/EHCI/ehci.c +++ b/KernelLand/Modules/USB/EHCI/ehci.c @@ -225,7 +225,7 @@ void *EHCI_InitInterrupt(void *Ptr, int Endpoint, int bOutbound, int Period, void *EHCI_InitIsoch(void *Ptr, int Endpoint, size_t MaxPacketSize) { - return (void*)(Endpoint + 1); + return (void*)(tVAddr)(Endpoint + 1); } void *EHCI_InitControl(void *Ptr, int Endpoint, size_t MaxPacketSize) { diff --git a/KernelLand/Modules/USB/UHCI/uhci.c b/KernelLand/Modules/USB/UHCI/uhci.c index 636cd74c..0fe80dcb 100644 --- a/KernelLand/Modules/USB/UHCI/uhci.c +++ b/KernelLand/Modules/USB/UHCI/uhci.c @@ -537,7 +537,7 @@ void *UHCI_int_InitEndpt(tUHCI_Controller *Cont, int Type, int Endpt, size_t Max epi->Type = Type; epi->Tgl = 0; - return (void*)(Endpt+1); + return (void*)(tVAddr)(Endpt+1); }