summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1996-05-21 00:39:39 +0000
committerdyson <dyson@FreeBSD.org>1996-05-21 00:39:39 +0000
commitdaaf2e922f028b52c7654d7ffacd86a5f39dd69f (patch)
tree2698039ea13ab5e85733af0d4f0a79ed6c36e292 /sys/amd64
parentf75c739b82093b27812c832125a3b748a2777d07 (diff)
downloadFreeBSD-src-daaf2e922f028b52c7654d7ffacd86a5f39dd69f.zip
FreeBSD-src-daaf2e922f028b52c7654d7ffacd86a5f39dd69f.tar.gz
To quote Stephen McKay: pmap_copy is a complex NOP at this moment :-).
With this fix from Stephen, we are getting the target fork performance that I have been trying to attain: P5-166, before the mega-commit: 700-800usecs, after: 600usecs, with Stephen's fix: 500usecs!!! Also, this could be the solution of some strange panic problems... Reviewed by: dyson@freebsd.org Submitted by: Stephen McKay <syssgm@devetir.qld.gov.au>
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index 61da7a1..7efb451 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.90 1996/05/18 03:36:14 dyson Exp $
+ * $Id: pmap.c,v 1.91 1996/05/19 07:36:37 dyson Exp $
*/
/*
@@ -1943,7 +1943,7 @@ pmap_copy(dst_pmap, src_pmap, dst_addr, len, src_addr)
pdnxt = ((addr + PAGE_SIZE*NPTEPG) & ~(PAGE_SIZE*NPTEPG - 1));
srcptepaddr = (vm_offset_t) src_pmap->pm_pdir[addr >> PDRSHIFT];
- if (srcptepaddr) {
+ if (srcptepaddr == 0) {
continue;
}
OpenPOWER on IntegriCloud