DragonFly BSD
DragonFly commits List (threaded) for 2004-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 19 Apr 2004 06:37:44 -0700 (PDT)

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]