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 some more definitions



details:   https://anonhg.NetBSD.org/src/rev/06d1106d23d0
branches:  trunk
changeset: 785270:06d1106d23d0
user:      yamt <yamt%NetBSD.org@localhost>
date:      Wed Mar 06 11:51:40 2013 +0000

description:
some more definitions

diffstat:

 sys/arch/x86/include/specialreg.h |  33 ++++++++++++++++++++++++++++++++-
 1 files changed, 32 insertions(+), 1 deletions(-)

diffs (47 lines):

diff -r 5a7143c7a624 -r 06d1106d23d0 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Wed Mar 06 11:50:32 2013 +0000
+++ b/sys/arch/x86/include/specialreg.h Wed Mar 06 11:51:40 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.62 2013/01/06 22:37:36 dsl Exp $      */
+/*     $NetBSD: specialreg.h,v 1.63 2013/03/06 11:51:40 yamt Exp $     */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -160,6 +160,37 @@
 
 #define CPUID_DSPM_FLAGS1      "\20" "\1" "HWF"
 
+/*
+ * Intel Structured Extended Feature leaf
+ * Fn0000_0007 main leaf - %ebx.
+ */
+#define CPUID_SEF_FSGSBASE     __BIT(0)
+#define CPUID_SEF_BMI1         __BIT(3)
+#define CPUID_SEF_HLE          __BIT(4)
+#define CPUID_SEF_AVX2         __BIT(5)
+#define CPUID_SEF_SMEP         __BIT(7)
+#define CPUID_SEF_BMI2         __BIT(8)
+#define CPUID_SEF_ERMS         __BIT(9)
+#define CPUID_SEF_INVPCID      __BIT(10)
+#define CPUID_SEF_RTM          __BIT(11)
+#define CPUID_SEF_RDSEED       __BIT(18)
+#define CPUID_SEF_ADX          __BIT(19)
+#define CPUID_SEF_SMAP         __BIT(20)
+
+#define CPUID_SEF_FLAGS        "\20" \
+       "\1" "FSGSBASE" \
+       "\2" "BMI1" \
+       "\4" "HLE" \
+       "\5" "AVX2" \
+       "\7" "SMEP" \
+       "\10" "BMI2" \
+       "\11" "ERMS" \
+       "\12" "INVPCID" \
+       "\13" "RTM" \
+       "\22" "RDSEED" \
+       "\23" "ADX" \
+       "\24" "SMAP"
+
 /* Intel Fn80000001 extended features - %edx */
 #define CPUID_SYSCALL  0x00000800      /* SYSCALL/SYSRET */
 #define CPUID_XD       0x00100000      /* Execute Disable (like CPUID_NOX) */



Home | Main Index | Thread Index | Old Index