diff options
Diffstat (limited to 'sys/arch/amd64/include/pmap.h')
-rw-r--r-- | sys/arch/amd64/include/pmap.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/pmap.h b/sys/arch/amd64/include/pmap.h index f69af43e8eb..d0e7fad264c 100644 --- a/sys/arch/amd64/include/pmap.h +++ b/sys/arch/amd64/include/pmap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.h,v 1.68 2018/09/30 18:46:09 guenther Exp $ */ +/* $OpenBSD: pmap.h,v 1.69 2018/10/04 05:00:40 guenther Exp $ */ /* $NetBSD: pmap.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */ /* @@ -243,6 +243,18 @@ /* PG_AVAIL3 not used */ /* + * PCID assignments. + * The shootdown code assumes KERN, PROC, and PROC_INTEL are both + * consecutive and in that order. + */ +#define PCID_KERN 0 /* for pmap_kernel() */ +#define PCID_PROC 1 /* non-pmap_kernel(), U+K */ +#define PCID_PROC_INTEL 2 /* non-pmap_kernel(), U-K (meltdown) */ +#define PCID_TEMP 3 /* temp mapping of another non-pmap_kernel() */ + +extern int pmap_use_pcid; /* non-zero if PCID support is enabled */ + +/* * Number of PTEs per cache line. 8 byte pte, 64-byte cache line * Used to avoid false sharing of cache lines. */ |