Date: Thu, 30 Oct 2003 15:32:34 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 40890 for review Message-ID: <200310302332.h9UNWYnW085870@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=40890 Change 40890 by peter@peter_daintree on 2003/10/30 15:32:17 as on -current, test against kernel_pmap Affected files ... .. //depot/projects/hammer/sys/amd64/amd64/pmap.c#40 edit Differences ... ==== //depot/projects/hammer/sys/amd64/amd64/pmap.c#40 (text+ko) ==== @@ -666,7 +666,7 @@ * XXX we may need to hold schedlock to get a coherent pm_active * XXX critical sections disable interrupts again */ - if (pmap->pm_active == -1 || pmap->pm_active == all_cpus) { + if (pmap == kernel_pmap || pmap->pm_active == all_cpus) { invlpg(va); smp_invlpg(va); } else { @@ -702,7 +702,7 @@ * XXX we may need to hold schedlock to get a coherent pm_active * XXX critical sections disable interrupts again */ - if (pmap->pm_active == -1 || pmap->pm_active == all_cpus) { + if (pmap == kernel_pmap || pmap->pm_active == all_cpus) { for (addr = sva; addr < eva; addr += PAGE_SIZE) invlpg(addr); smp_invlpg_range(sva, eva); @@ -740,7 +740,7 @@ * XXX we may need to hold schedlock to get a coherent pm_active * XXX critical sections disable interrupts again */ - if (pmap->pm_active == -1 || pmap->pm_active == all_cpus) { + if (pmap == kernel_pmap || pmap->pm_active == all_cpus) { invltlb(); smp_invltlb(); } else {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310302332.h9UNWYnW085870>