Basic functions to dynamically adjust kernel vmaps
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 14 Jun 2011 01:14:17 +0000 (18:14 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:04 +0000 (17:36 -0700)
commit720efef2f63512a7cba59df21167e9789381b2a5
treee2334608f573ab6b9068219021503eb71ab72cc3
parentd89c297872abe14d0b12f76da2be9dd18f14b7f2
Basic functions to dynamically adjust kernel vmaps

For now, you can't dealloc or unmap regions.  There are two parts:
reservation/alloc/getting of a chunk of vm space (growing down from
KERN_DYN_TOP), and then mapping those vaddrs to paddrs.  This is not
like page_insert - there might not be real pages involved.  You'll have
to handle your own refcnting or otherwise handle whatever you are
mapping.
kern/include/mm.h
kern/include/pmap.h
kern/src/mm.c