assert(!addr_search(&addravl, pageno, AVL_EQUAL));
+#if JUNKFREE
+ if(sys_memset(0xa5a5a5a5, VM_PAGE_SIZE * pageno,
+ VM_PAGE_SIZE * npages) != OK)
+ panic("free_pages: sys_memset failed");
+#endif
+
/* try to merge with higher neighbour */
if((pr=addr_search(&addravl, pageno+npages, AVL_EQUAL))) {
USE(pr, pr->addr -= npages;
/* Compile in asserts and custom sanity checks at all? */
#define SANITYCHECKS 0
#define VMSTATS 0
+#define JUNKFREE 0 /* Fill freed pages with junk */
/* How noisy are we supposed to be? */
#define VERBOSE 0