From 342b8a4cf896a6d462a50084133645a5b2698606 Mon Sep 17 00:00:00 2001 From: drochner Date: Thu, 10 Feb 2005 20:52:52 +0000 Subject: [PATCH] Recognize an obscure cpu feature flag bit "xTPR" which indicates that Task Priority Messages might be disabled. Not relevant for the kernel for now (related to interrupt distribution on the APIC bus afaict), but present on one of my boxes. Being here, also recognise the future "Vanderpool" extension. --- sys/arch/x86/include/specialreg.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/x86/include/specialreg.h b/sys/arch/x86/include/specialreg.h index b78e9942801b..7976495092f1 100644 --- a/sys/arch/x86/include/specialreg.h +++ b/sys/arch/x86/include/specialreg.h @@ -1,4 +1,4 @@ -/* $NetBSD: specialreg.h,v 1.6 2004/05/17 15:38:17 joda Exp $ */ +/* $NetBSD: specialreg.h,v 1.7 2005/02/10 20:52:52 drochner Exp $ */ /*- * Copyright (c) 1991 The Regents of the University of California. @@ -151,11 +151,13 @@ #define CPUID2_SSE3 0x00000001 /* Streaming SIMD Extensions 3 */ #define CPUID2_MONITOR 0x00000008 /* MONITOR/MWAIT instructions */ #define CPUID2_DS_CPL 0x00000010 /* CPL Qualified Debug Store */ +#define CPUID2_VMX 0x00000020 /* Virtual Machine Extensions */ #define CPUID2_EST 0x00000080 /* Enhanced SpeedStep Technology */ #define CPUID2_TM2 0x00000100 /* Thermal Monitor 2 */ #define CPUID2_CID 0x00000400 /* Context ID */ +#define CPUID2_xTPR 0x00004000 /* Task Priority Messages disabled? */ -#define CPUID2_FLAGS "\20\1SSE3\4MONITOR\5DS-CPL\10EST\11TM2\13CID" +#define CPUID2_FLAGS "\20\1SSE3\4MONITOR\5DS-CPL\6VMX\10EST\11TM2\13CID\17xTPR" #define CPUID2FAMILY(cpuid) (((cpuid) >> 8) & 15) #define CPUID2MODEL(cpuid) (((cpuid) >> 4) & 15)