Author: hselasky
Date: Fri Feb 13 07:47:17 2015
New Revision: 278661
URL: https://svnweb.freebsd.org/changeset/base/278661

Log:
  MFC r278477:
  Fix DMA address casts.

Modified:
  stable/9/sys/dev/usb/controller/xhci.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/usb/controller/xhci.c
==============================================================================
--- stable/9/sys/dev/usb/controller/xhci.c      Fri Feb 13 07:46:02 2015        
(r278660)
+++ stable/9/sys/dev/usb/controller/xhci.c      Fri Feb 13 07:47:17 2015        
(r278661)
@@ -485,7 +485,7 @@ xhci_start_controller(struct xhci_softc 
        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);
 
@@ -1098,7 +1098,7 @@ xhci_interrupt_poll(struct xhci_softc *s
         * 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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to