Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jan 2008 01:31:21 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 133702 for review
Message-ID:  <200801200131.m0K1VLDF025183@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133702

Change 133702 by kmacy@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);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801200131.m0K1VLDF025183>