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

Joerg Sonnenberger joerg at
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 
  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

More information about the Commits mailing list