Module Name: src Committed By: snj Date: Sun Mar 28 16:45:21 UTC 2010
Modified Files: src/sys/external/bsd/drm/dist/bsd-core [netbsd-5]: drm_pci.c Log Message: Pull up following revision(s) (requested by mrg in ticket #1346): sys/external/bsd/drm/dist/bsd-core/drm_pci.c: revision 1.9 don't pass "maxaddr" as a boundary in bus_dmamap_create() like rev 1.8 did for _alloc(). To generate a diff of this commit: cvs rdiff -u -r1.4.10.2 -r1.4.10.3 \ src/sys/external/bsd/drm/dist/bsd-core/drm_pci.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm/dist/bsd-core/drm_pci.c diff -u src/sys/external/bsd/drm/dist/bsd-core/drm_pci.c:1.4.10.2 src/sys/external/bsd/drm/dist/bsd-core/drm_pci.c:1.4.10.3 --- src/sys/external/bsd/drm/dist/bsd-core/drm_pci.c:1.4.10.2 Sun Mar 28 16:44:23 2010 +++ src/sys/external/bsd/drm/dist/bsd-core/drm_pci.c Sun Mar 28 16:45:21 2010 @@ -137,7 +137,7 @@ free(dmah, DRM_MEM_DMA); return NULL; } - if ((ret = bus_dmamap_create(dmah->tag, size, 1, size, maxaddr, + if ((ret = bus_dmamap_create(dmah->tag, size, 1, size, 0, BUS_DMA_NOWAIT, &dmah->map)) != 0) { printf("drm: Unable to create DMA map, error %d\n", ret); bus_dmamem_unmap(dmah->tag, dmah->vaddr, size);