slab: Bootstrap before setting up kpages_arena
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 2 Nov 2016 22:05:23 +0000 (18:05 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Nov 2016 16:27:40 +0000 (11:27 -0500)
commit4a62172bf94adcf5ad7aa98390a47d1550d3463d
treef73f601d1ac00010aba397e848a7a93baada4fac
parent235177117dcff253d5b66e97eb424bcd5517d00e
slab: Bootstrap before setting up kpages_arena

Kpages will use kmem_cache, so we should at least run the init function
first.  While we're at it, we can statically initialize the lock and list.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/init.c
kern/src/pmap.c
kern/src/slab.c