summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2018-09-05 04:23:19 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2018-09-05 04:23:19 +0000
commitedcadc11d3e6fb19f1f4e563eb4e6843aa56eda1 (patch)
tree7977ef80293ba28c573c96e7ad0146c3cadd546f /sys
parent8ea37d1cdac2062741ec6d592a0f448afd75c211 (diff)
Add defines for dealing with PCID support in cr3
ok mlarkin@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/include/specialreg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/specialreg.h b/sys/arch/amd64/include/specialreg.h
index 7cbea305382..b276a53a939 100644
--- a/sys/arch/amd64/include/specialreg.h
+++ b/sys/arch/amd64/include/specialreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: specialreg.h,v 1.79 2018/08/21 19:04:40 deraadt Exp $ */
+/* $OpenBSD: specialreg.h,v 1.80 2018/09/05 04:23:18 guenther Exp $ */
/* $NetBSD: specialreg.h,v 1.1 2003/04/26 18:39:48 fvdl Exp $ */
/* $NetBSD: x86/specialreg.h,v 1.2 2003/04/25 21:54:30 fvdl Exp $ */
@@ -72,8 +72,11 @@
/*
* bits in CR3
*/
+#define CR3_PCID 0xfffULL
#define CR3_PWT (1ULL << 3)
#define CR3_PCD (1ULL << 4)
+#define CR3_REUSE_PCID (1ULL << 63)
+#define CR3_PADDR 0x7ffffffffffff000ULL
/*
* bits in the pentiums %cr4 register: