diff options
author | dyson <dyson@FreeBSD.org> | 1997-09-07 01:15:13 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1997-09-07 01:15:13 +0000 |
commit | 27851d5ce5ce0acc92d96e2dd0bf80e1da52cd7c (patch) | |
tree | f0e9445034a4901c1211f68501205b64fcf8f7f1 /sys/amd64 | |
parent | f41d13e271f3762e24e18fd8ab2c0f25d01d80b1 (diff) | |
download | FreeBSD-src-27851d5ce5ce0acc92d96e2dd0bf80e1da52cd7c.zip FreeBSD-src-27851d5ce5ce0acc92d96e2dd0bf80e1da52cd7c.tar.gz |
Fix an intermittent problem during SMP code operation. Not all of the
idle page table directories for all of the processors was being updated
during kernel grow operations. The problem appears to be gone now.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 2b069f7..67c1084 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -39,7 +39,7 @@ * SUCH DAMAGE. * * from: @(#)pmap.c 7.7 (Berkeley) 5/12/91 - * $Id: pmap.c,v 1.159 1997/08/25 21:53:01 bde Exp $ + * $Id: pmap.c,v 1.160 1997/08/26 18:10:32 peter Exp $ */ /* @@ -1464,7 +1464,7 @@ pmap_growkernel(vm_offset_t addr) pdir_pde(PTD, kernel_vm_end) = (pd_entry_t) (VM_PAGE_TO_PHYS(nkpg) | PG_V | PG_RW | pgeflag); #ifdef SMP - for (i = 0; i < mp_naps; i++) { + for (i = 0; i < mp_ncpus; i++) { if (IdlePTDS[i]) pdir_pde(IdlePTDS[i], kernel_vm_end) = (pd_entry_t) (VM_PAGE_TO_PHYS(nkpg) | PG_V | PG_RW | pgeflag); } |