diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-06-14 18:13:56 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2019-06-14 18:13:56 +0000 |
commit | 72b2c8b063c321d18386d850154734ceb3128af8 (patch) | |
tree | 57acf66dd8b35558972ec2df3f1c229d3c07f68d /sys/arch/amd64 | |
parent | 96f9e76f65652e1dc492de709034252f4c353dc9 (diff) |
Add TSC_ADJUST CPUID flag.
ok deraadt@, mlarkin@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/identcpu.c | 3 | ||||
-rw-r--r-- | sys/arch/amd64/include/specialreg.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/identcpu.c b/sys/arch/amd64/amd64/identcpu.c index 11fa3323d5e..459fd0a6ac4 100644 --- a/sys/arch/amd64/amd64/identcpu.c +++ b/sys/arch/amd64/amd64/identcpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identcpu.c,v 1.112 2019/05/28 18:20:01 guenther Exp $ */ +/* $OpenBSD: identcpu.c,v 1.113 2019/06/14 18:13:55 kettenis Exp $ */ /* $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */ /* @@ -172,6 +172,7 @@ const struct { { CPUIDECX_MWAITX, "MWAITX" }, }, cpu_seff0_ebxfeatures[] = { { SEFF0EBX_FSGSBASE, "FSGSBASE" }, + { SEFF0EBX_TSC_ADJUST, "TSC_ADJUST" }, { SEFF0EBX_SGX, "SGX" }, { SEFF0EBX_BMI1, "BMI1" }, { SEFF0EBX_HLE, "HLE" }, diff --git a/sys/arch/amd64/include/specialreg.h b/sys/arch/amd64/include/specialreg.h index a34d39e14d5..bb8c1539bde 100644 --- a/sys/arch/amd64/include/specialreg.h +++ b/sys/arch/amd64/include/specialreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: specialreg.h,v 1.84 2019/05/17 19:07:16 guenther Exp $ */ +/* $OpenBSD: specialreg.h,v 1.85 2019/06/14 18:13:55 kettenis 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 $ */ @@ -185,6 +185,7 @@ * EBX bits */ #define SEFF0EBX_FSGSBASE 0x00000001 /* {RD,WR}[FG]SBASE instructions */ +#define SEFF0EBX_TSC_ADJUST 0x00000002 /* Has IA32_TSC_ADJUST MSR */ #define SEFF0EBX_SGX 0x00000004 /* Software Guard Extensions */ #define SEFF0EBX_BMI1 0x00000008 /* advanced bit manipulation */ #define SEFF0EBX_HLE 0x00000010 /* Hardware Lock Elision */ |