文章目录
Part1 Physical Page Management
Exercise 1. In the file kern/pmap.c, you must implement code for the following functions (probably in the order given).
boot_alloc()
mem_init()
(only up to the call to check_page_free_list(1))page_init()
page_alloc()
page_free()
check_page_free_list()
andcheck_page_alloc()
test your physical page allocator. You should boot JOS and see whethercheck_page_alloc()
reports success. Fix your code so that it passes. You may find it helpful to add your ownassert()
s to verify that your assumptions are correct.