Source-Changes archive

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

NetBSD master CVS tree commits



thorpej
Mon May 12 21:01:50 PDT 1997
Update of /cvsroot/src/sys/vm
In directory netbsd1:/var/slash-tmp/cvs-serv3292

Modified Files:
      Tag: thorpej-bus-dma
        vm_page.c 
Log Message:
- Shuffle vm_page_startup() to provide vm_page_count like the
  MACHINE_NONCONTIG case.
- After allocating the vm_page_array[], make sure it is initialized
  to 0s (suggested by Wolfgang Solfrank).
- Implement vm_page_alloc_memory() and vm_page_free_memory().  The former
  takes a list of contraints (range, alignment, maximum number of
  segments) and returns a list of vm_page_t's to the caller, removing
  them from the free memory pool.  The pages are not mapped into
  any virtual address space.  It is, in effect, "raw memory".  The latter
  frees a list of vm_page_t's back to the free memory pool - the pages
  are assumed to have no mappings.

XXX vm_page_alloc_memory(), in its current incarnation, assumes that
XXX the pmap provides pages to the VM system in ascending order.  This
XXX is a bug which will be addressed shortly (even though all ports
XXX currently conform to this restriction).


thorpej
Mon May 12 21:05:50 PDT 1997
Update of /cvsroot/src/sys/vm
In directory netbsd1:/var/slash-tmp/cvs-serv3758

Modified Files:
      Tag: thorpej-bus-dma
        vm_page.h 
Log Message:
- Define PG_FREE, indicating that a managed page is free.  (XXX Oh, for
  want of a sane way of representing extents of managed physical memory.)
- Define a VM_PAGE_IS_FREE() macro for testing if a managed page is free.
- Define a VM_PAGE_INDEX() macro and defined PHYS_TO_VM_PAGE() in
  terms of it.
- Prototype vm_page_alloc_memory() and vm_page_free_memory().




Home | Main Index | Thread Index | Old Index