From 49c3b925319d35e1cb3f3b48e2006b32ab416bbe Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 8 Nov 2006 19:11:54 +0000 Subject: [PATCH] I misplaced the assertion that was added to vm_page_startup() in the previous change. Correct its placement. --- sys/vm/vm_page.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index fabeec381efb..8926489b2750 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -319,6 +319,12 @@ vm_page_startup(vm_offset_t vaddr) #endif phys_avail[biggestone + 1] = new_end; + /* + * Clear all of the page structures + */ + bzero((caddr_t) vm_page_array, page_range * sizeof(struct vm_page)); + vm_page_array_size = page_range; + /* * This assertion tests the hypothesis that npages and total are * redundant. XXX @@ -329,12 +335,6 @@ vm_page_startup(vm_offset_t vaddr) KASSERT(page_range == npages, ("vm_page_startup: inconsistent page counts")); - /* - * Clear all of the page structures - */ - bzero((caddr_t) vm_page_array, page_range * sizeof(struct vm_page)); - vm_page_array_size = page_range; - /* * Construct the free queue(s) in descending order (by physical * address) so that the first 16MB of physical memory is allocated