diff options
author | dg <dg@FreeBSD.org> | 1994-09-27 20:49:02 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-09-27 20:49:02 +0000 |
commit | 4f97017177f8285a4b06c1e1352a160e393cfb83 (patch) | |
tree | 0a5b5092801b21c2514dab4d50204994cbeb5f41 /sys | |
parent | e513bd35afde67eeb8769f325fbe698707f6209b (diff) | |
download | FreeBSD-src-4f97017177f8285a4b06c1e1352a160e393cfb83.zip FreeBSD-src-4f97017177f8285a4b06c1e1352a160e393cfb83.tar.gz |
Previous commit should have read ...in vm_page_alloc_contig().
...(this commit): moved initialization of 'start' to make it more clear
that it is initialized properly (also in vm_page_alloc_contig).
Reviewed by:
Submitted by:
Obtained from:
Diffstat (limited to 'sys')
-rw-r--r-- | sys/vm/vm_page.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 189bff8..9b52c3f 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)vm_page.c 7.4 (Berkeley) 5/7/91 - * $Id: vm_page.c,v 1.7 1994/09/27 19:34:16 davidg Exp $ + * $Id: vm_page.c,v 1.8 1994/09/27 20:45:24 davidg Exp $ */ /* @@ -591,7 +591,7 @@ vm_page_alloc_contig(size, low, high, alignment) vm_offset_t high; vm_offset_t alignment; { - int i, s, start = 0; + int i, s, start; vm_offset_t addr, phys, tmp_addr; vm_page_t pga = vm_page_array; extern vm_map_t kernel_map; @@ -599,6 +599,7 @@ vm_page_alloc_contig(size, low, high, alignment) if ((alignment & (alignment - 1)) != 0) panic("vm_page_alloc_contig: alignment must be a power of 2"); + start = 0; s = splhigh(); again: /* |