cvs commit: src/sys/i386/i386 busdma_machdep.c

Joerg Sonnenberger joerg at crater.dragonflybsd.org
Mon Apr 19 06:39:36 PDT 2004


joerg       2004/04/19 06:37:44 PDT

DragonFly src repository

  Modified files:
    sys/i386/i386        busdma_machdep.c 
  Log:
  In contrast to FreeBSD 4 and 5, our slab allocator does hand out cross-page
  allocations. This broke bus_dmamem_alloc, which depends on allocation of
  size < PAGE_SIZE to not cross pages.
  
  As a temporary workaround, bus_dmamem_alloc checks explicitly wether an
  allocation crossed page boundaries and retries the allocation with size
  rounded up to the next power-of-two.
  
  Revision  Changes    Path
  1.9       +13 -0     src/sys/i386/i386/busdma_machdep.c


http://www.dragonflybsd.org/cvsweb/src/sys/i386/i386/busdma_machdep.c.diff?r1=1.8&r2=1.9&f=h





More information about the Commits mailing list