pm: Catch issues with page map pages
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Oct 2017 18:14:25 +0000 (14:14 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 30 Oct 2017 18:57:25 +0000 (14:57 -0400)
commit642707010dd8f5cd5bd4e743d04c8de1b9eacea0
treeaa6be7fc1fbe51e24c5eac4af74b417e5c75e072
parent6738e82742df39c63ea9275aa53e9a6d7ad75482
pm: Catch issues with page map pages

We had bugs with PM reference counts and pages being freed with PG_ flags
still set.  The PM code needs to clean up after itself.

The various asserts are probably paranoia, but there might be similar bugs
out there still.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/pagemap.h
kern/src/page_alloc.c
kern/src/pagemap.c