Author: cem
Date: Sun Dec  4 04:04:57 2016
New Revision: 309526
URL: https://svnweb.freebsd.org/changeset/base/309526

Log:
  ioat(4): Compile on i386
  
  Truncate BUS_SPACE_MAXADDR_40BIT to essentially BUS_SPACE_MAXADDR_32BIT on
  platforms with 32-bit bus_addr_t (i.e., i386).
  
  PR:           215034
  Reported by:  ngie@
  Sponsored by: Dell EMC Isilon

Modified:
  head/sys/dev/ioat/ioat.c

Modified: head/sys/dev/ioat/ioat.c
==============================================================================
--- head/sys/dev/ioat/ioat.c    Sun Dec  4 03:50:57 2016        (r309525)
+++ head/sys/dev/ioat/ioat.c    Sun Dec  4 04:04:57 2016        (r309526)
@@ -486,8 +486,9 @@ ioat3_attach(device_t device)
        ringsz = sizeof(struct ioat_dma_hw_descriptor) * num_descriptors;
 
        error = bus_dma_tag_create(bus_get_dma_tag(ioat->device),
-           2 * 1024 * 1024, 0x0, BUS_SPACE_MAXADDR_40BIT, BUS_SPACE_MAXADDR,
-           NULL, NULL, ringsz, 1, ringsz, 0, NULL, NULL, &ioat->hw_desc_tag);
+           2 * 1024 * 1024, 0x0, (bus_addr_t)BUS_SPACE_MAXADDR_40BIT,
+           BUS_SPACE_MAXADDR, NULL, NULL, ringsz, 1, ringsz, 0, NULL, NULL,
+           &ioat->hw_desc_tag);
        if (error != 0)
                return (error);
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to