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 some definitions of Intel's cpuid f...



details:   https://anonhg.NetBSD.org/src/rev/0f26402cead9
branches:  trunk
changeset: 789989:0f26402cead9
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sat Sep 14 17:18:18 2013 +0000

description:
Add some definitions of Intel's cpuid feature from the latest document.

diffstat:

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

diffs (26 lines):

diff -r fda1e6294132 -r 0f26402cead9 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Sat Sep 14 15:09:34 2013 +0000
+++ b/sys/arch/x86/include/specialreg.h Sat Sep 14 17:18:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.67 2013/08/12 18:16:19 drochner Exp $ */
+/*     $NetBSD: specialreg.h,v 1.68 2013/09/14 17:18:18 msaitoh Exp $  */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -210,10 +210,13 @@
 
 /* Intel Fn80000001 extended features - %ecx */
 #define        CPUID_LAHF      0x00000001      /* LAHF/SAHF in IA-32e mode, 64bit sub*/
+               /*      0x00000020 */   /* LZCNT. Same as AMD's CPUID_LZCNT */
+#define        CPUID_PREFETCHW 0x00000100      /* PREFETCHW */
 
-#define        CPUID_INTEL_FLAGS4      "\20" \
-       "\1" "LAHF"     "\02" "B01"     "\03" "B02"
-
+#define        CPUID_INTEL_FLAGS4      "\20"                           \
+       "\1" "LAHF"     "\02" "B01"     "\03" "B02"             \
+                       "\06" "LZCNT"                           \
+       "\11" "PREFETCHW"
 
 /* AMD/VIA Fn80000001 extended features - %edx */
 /*     CPUID_SYSCALL                      SYSCALL/SYSRET */



Home | Main Index | Thread Index | Old Index