I misplaced the assertion that was added to vm_page_startup() in the

previous change.  Correct its placement.
This commit is contained in:
Alan Cox 2006-11-08 19:11:54 +00:00
parent 9ad3296a25
commit 49c3b92531

View File

@ -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