aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-04-28 15:50:16 +0000
committerGordon Tetlow <gordon@FreeBSD.org>2022-02-01 17:43:46 +0000
commitf151464add6f04a7b296406e8f095ed8ace01f2c (patch)
treebeae1eeb2f140792d2828a6aeb76529377275632
parentb0c8bc5d9cd5b7d5d01147e26238dfa9b8c90916 (diff)
downloadsrc-f151464add6f.tar.gz
src-f151464add6f.zip
amd64: disable LA57 by default for now
(cherry picked from commit 72a42ec63b4a98f812f5f6164415eeb9a55e1933) (cherry picked from commit df6241fcef9a8df76839caeaef61520d5f3a7925) Approved by: so Security: FreeBSD-EN-22:07.la57
-rw-r--r--sys/amd64/amd64/pmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index bd23fd176e88..f77bec8d7a83 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -2015,8 +2015,7 @@ pmap_bootstrap_la57(void *arg __unused)
if ((cpu_stdext_feature2 & CPUID_STDEXT2_LA57) == 0)
return;
- if (!TUNABLE_INT_FETCH("vm.pmap.la57", &la57))
- la57 = 1;
+ TUNABLE_INT_FETCH("vm.pmap.la57", &la57);
if (!la57)
return;