From 4c0e9e8c79e1ca510b224b0aad85df79d2eb32dc Mon Sep 17 00:00:00 2001 From: Stephan Uphoff Date: Sat, 18 Mar 2006 19:32:46 +0000 Subject: [PATCH] Enable global pages TLB extension on Application Processors. MFC after: 3 days --- sys/amd64/amd64/mp_machdep.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index d843a2391b19..7577b621a7aa 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 */