PERFORCE change 40890 for review
Peter Wemm
peter at FreeBSD.org
Thu Oct 30 15:32:35 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=40890
Change 40890 by peter at 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 {
More information about the p4-projects
mailing list