From 375373276dbf0a1b57a34adb2fe83157257bd585 Mon Sep 17 00:00:00 2001 From: alc Date: Wed, 8 Nov 2006 19:11:54 +0000 Subject: 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(-) (limited to 'sys/vm') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index fabeec3..8926489 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -320,6 +320,12 @@ vm_page_startup(vm_offset_t vaddr) 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 */ @@ -330,12 +336,6 @@ vm_page_startup(vm_offset_t vaddr) ("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 * last rather than first. On large-memory machines, this avoids -- cgit v1.1