summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorups <ups@FreeBSD.org>2006-03-18 19:32:46 +0000
committerups <ups@FreeBSD.org>2006-03-18 19:32:46 +0000
commit1a84cbb2c6edd2929ab017388e746827135d80fc (patch)
tree58424b65fa7d212f9b65c8a6cea332ef5e51e12b
parente07f710abc0ec78b7d7520bafb2b82dbe430ac4c (diff)
downloadFreeBSD-src-1a84cbb2c6edd2929ab017388e746827135d80fc.zip
FreeBSD-src-1a84cbb2c6edd2929ab017388e746827135d80fc.tar.gz
Enable global pages TLB extension on Application Processors.
MFC after: 3 days
-rw-r--r--sys/amd64/amd64/mp_machdep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index d843a23..7577b62 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -561,6 +561,13 @@ init_secondary(void)
smp_active = 1; /* historic */
}
+ /*
+ * Enable global pages TLB extension
+ * This also implicitly flushes the TLB
+ */
+
+ load_cr4(rcr4() | CR4_PGE);
+
mtx_unlock_spin(&ap_boot_mtx);
/* wait until all the AP's are up */
OpenPOWER on IntegriCloud