summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2024-03-05 18:42:21 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2024-03-05 18:42:21 +0000
commit32c17a5e07eabf2a2bd2593cc6ca0e012115501b (patch)
treefd796c0f5751e7ffdd6d51d069bb6afc4e26b8a4 /sys/arch/arm64/include
parent7d0601b5282ac0dea0ccccbb035e5bbf8f731a4e (diff)
Tighten up BTCFI by flipping the bits that make PACIASP and PACIBSP
behave like BTI c instead of BTI jc. ok deraadt@, tobhe@
Diffstat (limited to 'sys/arch/arm64/include')
-rw-r--r--sys/arch/arm64/include/armreg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm64/include/armreg.h b/sys/arch/arm64/include/armreg.h
index 91d2f402a89..59983aa13e0 100644
--- a/sys/arch/arm64/include/armreg.h
+++ b/sys/arch/arm64/include/armreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: armreg.h,v 1.30 2023/11/29 23:32:16 kettenis Exp $ */
+/* $OpenBSD: armreg.h,v 1.31 2024/03/05 18:42:20 kettenis Exp $ */
/*-
* Copyright (c) 2013, 2014 Andrew Turner
* Copyright (c) 2015 The FreeBSD Foundation
@@ -656,6 +656,8 @@
#define SCTLR_EnDA 0x0000000008000000
#define SCTLR_EnIB 0x0000000040000000
#define SCTLR_EnIA 0x0000000080000000
+#define SCTLR_BT0 0x0000000800000000
+#define SCTLR_BT1 0x0000001000000000
/* SPSR_EL1 */
/*