PERFORCE change 133702 for review
Kip Macy
kmacy at FreeBSD.org
Sat Jan 19 17:31:22 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=133702
Change 133702 by kmacy at pandemonium:kmacy:xen31 on 2008/01/20 01:30:25
KASSERT that we aren't allocating/freeing a page from the initial set of pages
Affected files ...
.. //depot/projects/xen31/sys/vm/vm_page.c#8 edit
Differences ...
==== //depot/projects/xen31/sys/vm/vm_page.c#8 (text+ko) ====
@@ -139,6 +139,7 @@
int vm_page_array_size = 0;
long first_page = 0;
int vm_page_zero_count = 0;
+extern unsigned long physfree;
static int boot_pages = UMA_BOOT_PAGES;
TUNABLE_INT("vm.boot_pages", &boot_pages);
@@ -494,6 +495,8 @@
{
m->flags &= ~PG_ZERO;
+
+ KASSERT(VM_PAGE_TO_PHYS(m) >= physfree, ("freeing page from initial memory 0x%jx", VM_PAGE_TO_PHYS(m)));
vm_page_free_toq(m);
}
@@ -507,6 +510,7 @@
{
m->flags |= PG_ZERO;
+ KASSERT(VM_PAGE_TO_PHYS(m) >= physfree, ("freeing page from initial memory 0x%jx", VM_PAGE_TO_PHYS(m)));
vm_page_free_toq(m);
}
@@ -1156,6 +1160,8 @@
if (vm_paging_needed())
pagedaemon_wakeup();
+
+ KASSERT(VM_PAGE_TO_PHYS(m) >= physfree, ("allocating page from initial memory 0x%jx", VM_PAGE_TO_PHYS(m)));
return (m);
}
More information about the p4-projects
mailing list