From d1d36767ced3086d0726a169a088b6de67716fae Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 9 Aug 2012 22:44:17 +0800 Subject: [PATCH 1/1] USB - Fixed compile errors for x86_64 --- KernelLand/Modules/USB/EHCI/ehci.c | 2 +- KernelLand/Modules/USB/UHCI/uhci.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.20.1