summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2023-04-16 11:14:27 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2023-04-16 11:14:27 +0000
commita611d42472835de53a9ca76984e0a6708d7f5b15 (patch)
tree8c5c4b817e7102b7b7c3f6cbc41287a26bbc13b2 /sys/arch/arm64/include
parent050b76eae02f1a86b57b8b6117e01e92768697bf (diff)
Make enabling the BTI feature a per-pmap thing by storing the ATTR_GP bit
in a new pm_guarded member of struct pmap and using this member to add the bits to the PTEs ok deraadt@
Diffstat (limited to 'sys/arch/arm64/include')
-rw-r--r--sys/arch/arm64/include/pmap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/arm64/include/pmap.h b/sys/arch/arm64/include/pmap.h
index 89fa7cdd5e3..d61d9936c66 100644
--- a/sys/arch/arm64/include/pmap.h
+++ b/sys/arch/arm64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.22 2023/02/16 20:32:39 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.23 2023/04/16 11:14:26 kettenis Exp $ */
/*
* Copyright (c) 2008,2009,2014 Dale Rahn <drahn@dalerahn.com>
*
@@ -66,6 +66,7 @@ struct pmap {
} pm_vp;
uint64_t pm_pt0pa;
uint64_t pm_asid;
+ uint64_t pm_guarded;
int have_4_level_pt;
int pm_privileged;
int pm_refs; /* ref count */