summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-12-05 08:46:41 +0000
committerkib <kib@FreeBSD.org>2015-12-05 08:46:41 +0000
commitfa2e415f2a12d5c5a416b97b4f3e1be1dc26fb3a (patch)
tree0b8d25f54b98431297c7e152ca3c9bd74fe76a06 /sys/i386
parent3d60249814c85370009cbc5d649c15fc7607992e (diff)
downloadFreeBSD-src-fa2e415f2a12d5c5a416b97b4f3e1be1dc26fb3a.zip
FreeBSD-src-fa2e415f2a12d5c5a416b97b4f3e1be1dc26fb3a.tar.gz
In the pmap_set_pg() function, which enables the global bit on the
ptes mapping the kernel on CPUs where global TLB entries are supported, revert to flushing only non-global entries, i.e. to the pre-r291688 state. There is no need to flush global TLB entries, since only global entries created during the previous iterations of the loop could exist at this moment. Submitted by: alc Differential revision: https://reviews.freebsd.org/D4368
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/i386/pmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c
index dff9fc5..5ae41a3 100644
--- a/sys/i386/i386/pmap.c
+++ b/sys/i386/i386/pmap.c
@@ -655,7 +655,7 @@ pmap_set_pg(void)
va = KERNBASE + KERNLOAD;
while (va < endva) {
pdir_pde(PTD, va) |= pgeflag;
- invltlb_glob(); /* Play it safe, invltlb() every time */
+ invltlb(); /* Flush non-PG_G entries. */
va += NBPDR;
}
} else {
@@ -664,7 +664,7 @@ pmap_set_pg(void)
pte = vtopte(va);
if (*pte)
*pte |= pgeflag;
- invltlb_glob(); /* Play it safe, invltlb() every time */
+ invltlb(); /* Flush non-PG_G entries. */
va += PAGE_SIZE;
}
}
OpenPOWER on IntegriCloud