Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/include Add Intel cpuid 7 %edx IBRS(IBPB Specul...



details:   https://anonhg.NetBSD.org/src/rev/feed1f45e077
branches:  trunk
changeset: 828920:feed1f45e077
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jan 10 07:04:54 2018 +0000

description:
Add Intel cpuid 7 %edx IBRS(IBPB Speculation Control) and
STIBP(STIBP Speculation Control) from OpenBSD.

diffstat:

 sys/arch/x86/include/specialreg.h |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r aed07f0b80d1 -r feed1f45e077 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Wed Jan 10 04:45:24 2018 +0000
+++ b/sys/arch/x86/include/specialreg.h Wed Jan 10 07:04:54 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.106 2018/01/10 04:45:24 msaitoh Exp $ */
+/*     $NetBSD: specialreg.h,v 1.107 2018/01/10 07:04:54 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -394,9 +394,12 @@
 /* %edx */
 #define CPUID_SEF_AVX512_4VNNIW        __BIT(2)
 #define CPUID_SEF_AVX512_4FMAPS        __BIT(3)
+#define CPUID_SEF_IBRS         __BIT(26) /* IBRS / IBPB Speculation Control */
+#define CPUID_SEF_STIBP                __BIT(27) /* STIBP Speculation Control */
 
 #define CPUID_SEF_FLAGS2       "\20" \
-                               "\3" "AVX512_4VNNIW" "\4" "AVX512_4FMAPS"
+                               "\3" "AVX512_4VNNIW" "\4" "AVX512_4FMAPS" \
+                                       "\33" "IBRS"    "\34" "STIBP"
 
 /*
  * CPUID Processor extended state Enumeration Fn0000000d



Home | Main Index | Thread Index | Old Index