diff options
author | alc <alc@FreeBSD.org> | 2009-06-26 04:47:43 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2009-06-26 04:47:43 +0000 |
commit | 91cafd48b17a27bda3cfbc38e8460a14c273ba9a (patch) | |
tree | be473333ccc371c232599396e7b5253cdbad245b /sys/vm/vm_phys.c | |
parent | 9a472dd5889ffcc7520ed12bf9cbc791eb34eab7 (diff) | |
download | FreeBSD-src-91cafd48b17a27bda3cfbc38e8460a14c273ba9a.zip FreeBSD-src-91cafd48b17a27bda3cfbc38e8460a14c273ba9a.tar.gz |
This change is the next step in implementing the cache control functionality
required by video card drivers. Specifically, this change introduces
vm_cache_mode_t with an appropriate VM_CACHE_DEFAULT definition on all
architectures. In addition, this changes adds a vm_cache_mode_t parameter
to kmem_alloc_contig() and vm_phys_alloc_contig(). These will be the
interfaces for allocating mapped kernel memory and physical memory,
respectively, with non-default cache modes.
In collaboration with: jhb
Diffstat (limited to 'sys/vm/vm_phys.c')
-rw-r--r-- | sys/vm/vm_phys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_phys.c b/sys/vm/vm_phys.c index f64bc9c..58e71d0 100644 --- a/sys/vm/vm_phys.c +++ b/sys/vm/vm_phys.c @@ -588,7 +588,7 @@ vm_phys_zero_pages_idle(void) */ vm_page_t vm_phys_alloc_contig(unsigned long npages, vm_paddr_t low, vm_paddr_t high, - unsigned long alignment, unsigned long boundary) + unsigned long alignment, unsigned long boundary, vm_cache_mode_t mode) { struct vm_freelist *fl; struct vm_phys_seg *seg; |