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 Hybrid Information Enumeratio...



details:   https://anonhg.NetBSD.org/src/rev/a82b6cbce7d9
branches:  trunk
changeset: 359874:a82b6cbce7d9
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sat Jan 29 08:18:22 2022 +0000

description:
Add Intel Hybrid Information Enumeration (CPUID Fn0000_001a).

diffstat:

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

diffs (25 lines):

diff -r 56969178eda1 -r a82b6cbce7d9 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Sat Jan 29 08:17:03 2022 +0000
+++ b/sys/arch/x86/include/specialreg.h Sat Jan 29 08:18:22 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.187 2022/01/17 20:56:02 andvar Exp $  */
+/*     $NetBSD: specialreg.h,v 1.188 2022/01/29 08:18:22 msaitoh Exp $ */
 
 /*
  * Copyright (c) 2014-2020 The NetBSD Foundation, Inc.
@@ -650,6 +650,15 @@
 #define CPUID_DATP_FULLASSOC   __BIT(8)        /* Full associative */
 #define CPUID_DATP_SHAREING    __BITS(25, 14)  /* shareing */
 
+/*
+ * Intel Hybrid Information Enumeration.
+ * CPUID Fn0000_001a
+ */
+/* %eax */
+#define CPUID_HYBRID_NATIVEID  __BITS(23, 0)   /* Native model ID */
+#define CPUID_HYBRID_CORETYPE  __BITS(31, 24)  /* Core type */
+#define   CPUID_HYBRID_CORETYPE_ATOM   0x20            /* Atom */
+#define   CPUID_HYBRID_CORETYPE_CORE   0x40            /* Core */
 
 /*
  * Intel extended features.



Home | Main Index | Thread Index | Old Index