aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/include/pmap.h
diff options
context:
space:
mode:
authorJayachandran C. <jchandra@FreeBSD.org>2010-12-09 06:34:28 +0000
committerJayachandran C. <jchandra@FreeBSD.org>2010-12-09 06:34:28 +0000
commit6264198089f88bdaf9f78a25bc111aad03f2201c (patch)
tree3cae870c9bf59459a622cb984c1665b3481f53e6 /sys/mips/include/pmap.h
parentec6ea5e86d67f6b0cb202024bc5d965e414cb57b (diff)
downloadsrc-6264198089f88bdaf9f78a25bc111aad03f2201c.tar.gz
src-6264198089f88bdaf9f78a25bc111aad03f2201c.zip
UMA_MD_SMALL_ALLOC for mips.
Implement uma_small_alloc() and uma_small_free() for mips that allocates pages from direct mapped memory. Uses the same mechanism as the page table page allocator, so that we allocate from KSEG0 in 32 bit, and from XKPHYS on 64 bit. Reviewed by: alc, jmallett
Notes
Notes: svn path=/head/; revision=216315
Diffstat (limited to 'sys/mips/include/pmap.h')
-rw-r--r--sys/mips/include/pmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/mips/include/pmap.h b/sys/mips/include/pmap.h
index c082abb9a42a..cdbf9bcfa52f 100644
--- a/sys/mips/include/pmap.h
+++ b/sys/mips/include/pmap.h
@@ -163,6 +163,9 @@ void pmap_kenter_temporary_free(vm_paddr_t pa);
int pmap_compute_pages_to_dump(void);
void pmap_flush_pvcache(vm_page_t m);
int pmap_emulate_modified(pmap_t pmap, vm_offset_t va);
+void pmap_grow_direct_page_cache(void);
+vm_page_t pmap_alloc_direct_page(unsigned int index, int req);
+
#endif /* _KERNEL */
#endif /* !LOCORE */