diff options
author | alc <alc@FreeBSD.org> | 2006-11-08 19:11:54 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2006-11-08 19:11:54 +0000 |
commit | 375373276dbf0a1b57a34adb2fe83157257bd585 (patch) | |
tree | e6548f1378b0a47222981b338907f44face11d34 /sys/vm | |
parent | 763826feff1e481210182d591837e44cde687564 (diff) | |
download | FreeBSD-src-375373276dbf0a1b57a34adb2fe83157257bd585.zip FreeBSD-src-375373276dbf0a1b57a34adb2fe83157257bd585.tar.gz |
I misplaced the assertion that was added to vm_page_startup() in the
previous change. Correct its placement.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_page.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 |