Module Name:    src
Committed By:   yamt
Date:           Wed Mar  6 11:51:40 UTC 2013

Modified Files:
        src/sys/arch/x86/include: specialreg.h

Log Message:
some more definitions


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/arch/x86/include/specialreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/include/specialreg.h
diff -u src/sys/arch/x86/include/specialreg.h:1.62 src/sys/arch/x86/include/specialreg.h:1.63
--- src/sys/arch/x86/include/specialreg.h:1.62	Sun Jan  6 22:37:36 2013
+++ src/sys/arch/x86/include/specialreg.h	Wed Mar  6 11:51:40 2013
@@ -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) */

Reply via email to