From c4d1a64e49f5d25a0bd868bac2a778796d1a76f0 Mon Sep 17 00:00:00 2001 From: jym Date: Sat, 3 Apr 2010 23:17:05 +0000 Subject: [PATCH] Fix the comments about cpuid flags, according cpuid documentation by Intel and AMD. --- sys/arch/x86/include/specialreg.h | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/sys/arch/x86/include/specialreg.h b/sys/arch/x86/include/specialreg.h index 853e034340bf..7155d996059e 100644 --- a/sys/arch/x86/include/specialreg.h +++ b/sys/arch/x86/include/specialreg.h @@ -1,4 +1,4 @@ -/* $NetBSD: specialreg.h,v 1.38 2010/01/13 12:54:49 cegger Exp $ */ +/* $NetBSD: specialreg.h,v 1.39 2010/04/03 23:17:05 jym Exp $ */ /*- * Copyright (c) 1991 The Regents of the University of California. @@ -87,7 +87,7 @@ * CPUID "features" bits in %edx */ -/* Fn80000001 %edx feature */ +/* Fn00000001 %edx feature */ #define CPUID_FPU 0x00000001 /* processor has an FPU? */ #define CPUID_VME 0x00000002 /* has virtual mode (%cr4's VME/PVI) */ #define CPUID_DE 0x00000004 /* has debugging extension */ @@ -127,26 +127,20 @@ "\30MMX\31FXSR\32SSE\33SSE2\34SS\35HTT\36TM" \ "\37IA64\40SBF" -/* - * CPUID Intel extended features - %EDX - */ +/* Intel Fn80000001 extended features - %edx */ #define CPUID_SYSCALL 0x00000800 /* SYSCALL/SYSRET */ #define CPUID_XD 0x00100000 /* Execute Disable */ #define CPUID_EM64T 0x20000000 /* Intel EM64T */ #define CPUID_INTEL_EXT_FLAGS "\20\14SYSCALL/SYSRET\25XD\36EM64T" -/* - * CPUID Intel extended features - %ECX - */ +/* Intel Fn80000001 extended features - %ecx */ #define CPUID_LAHF 0x00000001 /* LAHF/SAHF in IA-32e mode, 64bit sub*/ #define CPUID_INTEL_FLAGS4 "\20\1LAHF" -/* - * AMD/VIA processor specific flags. - */ +/* AMD/VIA Fn80000001 extended features - %edx */ /* CPUID_SYSCALL SYSCALL/SYSRET */ #define CPUID_MPC 0x00080000 /* Multiprocessing Capable */ #define CPUID_NOX 0x00100000 /* No Execute Page Protection */ @@ -161,8 +155,7 @@ #define CPUID_EXT_FLAGS "\20\14SYSCALL/SYSRET\24MPC\25NOX\27MXX\32FFXSR" \ "\33P1GB\34RDTSCP\36LONG\0373DNOW2\0403DNOW" - -/* AMD Fn80000001 %ecx features */ +/* AMD Fn80000001 extended features - %ecx */ #define CPUID_LAHF 0x00000001 /* LAHF/SAHF instruction */ #define CPUID_CMPLEGACY 0x00000002 /* Compare Legacy */ #define CPUID_SVM 0x00000004 /* Secure Virtual Machine */