Stops using boot_alloc during vm_init
authorBarret Rhoden <brho@cs.berkeley.edu>
Sun, 16 Jun 2013 05:56:24 +0000 (22:56 -0700)
committerBarret Rhoden <brho@cs.berkeley.edu>
Sat, 22 Jun 2013 17:29:31 +0000 (10:29 -0700)
commit2f408ce3fc837cf0da45a73d94a63452e850279a
treec2f043ff9b4fd7fc5c93ee652316a71923c8beaf
parent2d5f35778810ceac1e8fe00c8705bd7c72b656bd
Stops using boot_alloc during vm_init

Now calls vm_init after fully setting up the free page list.  One
requirement of this is that we have all available physical memory mapped
into the boot page tables.  Our current page allocator gives them out in
reverse order, so we start right below max_paddr.  We're good up to
512GB on amd64.

The benefit of this is we don't have to deal with calling boot_alloc in
our vm_init code, which cleans things up a bit.
kern/arch/x86/pmap32.c
kern/arch/x86/pmap64.c
kern/include/page_alloc.h
kern/src/page_alloc.c
kern/src/pmap.c