diff options
author | hselasky <hselasky@FreeBSD.org> | 2015-02-09 21:47:12 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2015-02-09 21:47:12 +0000 |
commit | 243a28c0ca52b707a4bfbfb6a8355f72ee2b402c (patch) | |
tree | f73969793383725ef7217b9ac6abb3b251d695df /sys/dev/usb/controller | |
parent | 2a9a4a1a1eddc1fe5285e314181ef23ef1cac225 (diff) | |
download | FreeBSD-src-243a28c0ca52b707a4bfbfb6a8355f72ee2b402c.zip FreeBSD-src-243a28c0ca52b707a4bfbfb6a8355f72ee2b402c.tar.gz |
Fix DMA address casts. Regression issue after r278279.
MFC after: 3 days
Diffstat (limited to 'sys/dev/usb/controller')
-rw-r--r-- | sys/dev/usb/controller/xhci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/controller/xhci.c b/sys/dev/usb/controller/xhci.c index e9b72a3..2ad7964 100644 --- a/sys/dev/usb/controller/xhci.c +++ b/sys/dev/usb/controller/xhci.c @@ -492,7 +492,7 @@ xhci_start_controller(struct xhci_softc *sc) XWRITE4(sc, runt, XHCI_ERDP_LO(0), (uint32_t)addr); XWRITE4(sc, runt, XHCI_ERDP_HI(0), (uint32_t)(addr >> 32)); - addr = (uint64_t)buf_res.physaddr; + addr = buf_res.physaddr; DPRINTF("ERSTBA(0)=0x%016llx\n", (unsigned long long)addr); @@ -1114,7 +1114,7 @@ xhci_interrupt_poll(struct xhci_softc *sc) * register. */ - addr = (uint32_t)buf_res.physaddr; + addr = buf_res.physaddr; addr += (uintptr_t)&((struct xhci_hw_root *)0)->hwr_events[i]; /* try to clear busy bit */ |