From edacda736bf541aa7e309cc1019f94627f0449ca Mon Sep 17 00:00:00 2001 From: Mateusz Guzik <mjg@FreeBSD.org> Date: Mon, 21 May 2018 05:20:23 +0000 Subject: [PATCH] amd64: annotate pti with __read_frequently --- sys/amd64/amd64/pmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 37587bcf9b86..3fb528615ca3 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -413,7 +413,7 @@ int invpcid_works = 0; SYSCTL_INT(_vm_pmap, OID_AUTO, invpcid_works, CTLFLAG_RD, &invpcid_works, 0, "Is the invpcid instruction available ?"); -int pti = 0; +int __read_frequently pti = 0; SYSCTL_INT(_vm_pmap, OID_AUTO, pti, CTLFLAG_RDTUN | CTLFLAG_NOFETCH, &pti, 0, "Page Table Isolation enabled");