summaryrefslogtreecommitdiff
path: root/sys/arch/arm64/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2020-06-05 22:14:26 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2020-06-05 22:14:26 +0000
commitbb47463e44ba95db5a0ce64649ba085ef8c18638 (patch)
tree1ba9f5987bfffc89a7befdcfb3b35223ae7fad91 /sys/arch/arm64/include
parent659b80aba7ce97881c95c78858f7f1e214ecd458 (diff)
Allow userland access to the virtual counter.
ok patrick@, deraadt@
Diffstat (limited to 'sys/arch/arm64/include')
-rw-r--r--sys/arch/arm64/include/armreg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/arm64/include/armreg.h b/sys/arch/arm64/include/armreg.h
index f79e32c9311..54a02384510 100644
--- a/sys/arch/arm64/include/armreg.h
+++ b/sys/arch/arm64/include/armreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: armreg.h,v 1.10 2019/10/17 15:38:56 drahn Exp $ */
+/* $OpenBSD: armreg.h,v 1.11 2020/06/05 22:14:25 kettenis Exp $ */
/*-
* Copyright (c) 2013, 2014 Andrew Turner
* Copyright (c) 2015 The FreeBSD Foundation
@@ -69,6 +69,9 @@
#define CNTHCTL_EL1PCEN (1 << 1) /* Allow EL0/1 physical timer access */
#define CNTHCTL_EL1PCTEN (1 << 0) /*Allow EL0/1 physical counter access*/
+/* CNTKCTL_EL1 - Counter-timer Kernel Control Register */
+#define CNTKCTL_EL0VCTEN (1 << 1) /* Allow EL0 virtual counter access */
+
/* CPACR_EL1 */
#define CPACR_FPEN_MASK (0x3 << 20)
#define CPACR_FPEN_TRAP_ALL1 (0x0 << 20) /* Traps from EL0 and EL1 */