aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2024-01-02 23:46:14 +0100
committerHelge Deller <deller@gmx.de>2024-01-04 18:48:58 +0100
commit6db8c1474b0cf71f1f53602349d927111b745278 (patch)
treeb20249136f58699a20eb853ab4881d64dc720ec8
parentbc4933cc75dd144680beb42dade7f0ce93483f98 (diff)
downloadseabios-hppa-6db8c1474b0cf71f1f53602349d927111b745278.zip
seabios-hppa-6db8c1474b0cf71f1f53602349d927111b745278.tar.gz
seabios-hppa-6db8c1474b0cf71f1f53602349d927111b745278.tar.bz2
ehci: Fix build on 64-bit
Signed-off-by: Helge Deller <deller@gmx.de>
-rw-r--r--src/hw/usb-ehci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/usb-ehci.c b/src/hw/usb-ehci.c
index d01fa85..3eb05f1 100644
--- a/src/hw/usb-ehci.c
+++ b/src/hw/usb-ehci.c
@@ -555,7 +555,7 @@ ehci_send_pipe(struct usb_pipe *p, int dir, const void *cmd
// Allocate tds on stack (with required alignment)
u8 tdsbuf[sizeof(struct ehci_qtd) * STACKQTDS + EHCI_QTD_ALIGN - 1];
- struct ehci_qtd *tds = (void*)ALIGN((u32)tdsbuf, EHCI_QTD_ALIGN), *td = tds;
+ struct ehci_qtd *tds = (void*)ALIGN((unsigned long)tdsbuf, EHCI_QTD_ALIGN), *td = tds;
memset(tds, 0, sizeof(*tds) * STACKQTDS);
// Setup transfer descriptors