Module Name: src
Committed By: msaitoh
Date: Thu Sep 11 18:11:59 UTC 2014
Modified Files:
src/sys/arch/x86/include: specialreg.h
Log Message:
- Add two more bit definitions
- XINUSE -> XGETBV
To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 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.79 src/sys/arch/x86/include/specialreg.h:1.80
--- src/sys/arch/x86/include/specialreg.h:1.79 Tue Sep 9 15:09:16 2014
+++ src/sys/arch/x86/include/specialreg.h Thu Sep 11 18:11:59 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: specialreg.h,v 1.79 2014/09/09 15:09:16 msaitoh Exp $ */
+/* $NetBSD: specialreg.h,v 1.80 2014/09/11 18:11:59 msaitoh Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -87,6 +87,7 @@
#define CR4_PCIDE 0x00020000 /* enable Process Context IDentifiers */
#define CR4_OSXSAVE 0x00040000 /* enable xsave and xrestore */
#define CR4_SMEP 0x00100000 /* enable SMEP support */
+#define CR4_SMAP 0x00200000 /* enable SMAP support */
/*
* Extended Control Register XCR0
@@ -315,6 +316,7 @@
#define CPUID_SEF_QM __BIT(12)
#define CPUID_SEF_FPUCSDS __BIT(13)
#define CPUID_SEF_MPX __BIT(14)
+#define CPUID_SEF_PQE __BIT(15)
#define CPUID_SEF_AVX512F __BIT(16)
#define CPUID_SEF_RDSEED __BIT(18)
#define CPUID_SEF_ADX __BIT(19)
@@ -329,7 +331,7 @@
"\1" "FSGSBASE" "\2" "TSCADJUST" "\4" "BMI1" \
"\5" "HLE" "\6" "AVX2" "\10" "SMEP" \
"\11" "BMI2" "\12" "ERMS" "\13" "INVPCID" "\14" "RTM" \
- "\15" "QM" "\16" "FPUCSDS" "\17" "MPX" \
+ "\15" "QM" "\16" "FPUCSDS" "\17" "MPX" "\20" "PQE" \
"\21" "AVX512F" "\23" "RDSEED" "\24" "ADX" \
"\25" "SMAP" \
"\32" "PT" "\33" "AVX512PF""\34" "AVX512ER"\
@@ -360,7 +362,7 @@
#define CPUID_PES1_XSAVES 0x00000008 /* xsaves/xrstors, IA32_XSS */
#define CPUID_PES1_FLAGS "\20" \
- "\1" "XSAVEOPT" "\2" "XSAVEC" "\3" "XINUSE" "\4" "XSAVES"
+ "\1" "XSAVEOPT" "\2" "XSAVEC" "\3" "XGETBV" "\4" "XSAVES"
/* Intel Fn80000001 extended features - %edx */
#define CPUID_SYSCALL 0x00000800 /* SYSCALL/SYSRET */