Fix the comments about cpuid flags, according cpuid documentation by
Intel and AMD.
This commit is contained in:
parent
4c1d35303b
commit
c4d1a64e49
@ -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.
|
* Copyright (c) 1991 The Regents of the University of California.
|
||||||
@ -87,7 +87,7 @@
|
|||||||
* CPUID "features" bits in %edx
|
* CPUID "features" bits in %edx
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Fn80000001 %edx feature */
|
/* Fn00000001 %edx feature */
|
||||||
#define CPUID_FPU 0x00000001 /* processor has an FPU? */
|
#define CPUID_FPU 0x00000001 /* processor has an FPU? */
|
||||||
#define CPUID_VME 0x00000002 /* has virtual mode (%cr4's VME/PVI) */
|
#define CPUID_VME 0x00000002 /* has virtual mode (%cr4's VME/PVI) */
|
||||||
#define CPUID_DE 0x00000004 /* has debugging extension */
|
#define CPUID_DE 0x00000004 /* has debugging extension */
|
||||||
@ -127,26 +127,20 @@
|
|||||||
"\30MMX\31FXSR\32SSE\33SSE2\34SS\35HTT\36TM" \
|
"\30MMX\31FXSR\32SSE\33SSE2\34SS\35HTT\36TM" \
|
||||||
"\37IA64\40SBF"
|
"\37IA64\40SBF"
|
||||||
|
|
||||||
/*
|
/* Intel Fn80000001 extended features - %edx */
|
||||||
* CPUID Intel extended features - %EDX
|
|
||||||
*/
|
|
||||||
#define CPUID_SYSCALL 0x00000800 /* SYSCALL/SYSRET */
|
#define CPUID_SYSCALL 0x00000800 /* SYSCALL/SYSRET */
|
||||||
#define CPUID_XD 0x00100000 /* Execute Disable */
|
#define CPUID_XD 0x00100000 /* Execute Disable */
|
||||||
#define CPUID_EM64T 0x20000000 /* Intel EM64T */
|
#define CPUID_EM64T 0x20000000 /* Intel EM64T */
|
||||||
|
|
||||||
#define CPUID_INTEL_EXT_FLAGS "\20\14SYSCALL/SYSRET\25XD\36EM64T"
|
#define CPUID_INTEL_EXT_FLAGS "\20\14SYSCALL/SYSRET\25XD\36EM64T"
|
||||||
|
|
||||||
/*
|
/* Intel Fn80000001 extended features - %ecx */
|
||||||
* CPUID Intel extended features - %ECX
|
|
||||||
*/
|
|
||||||
#define CPUID_LAHF 0x00000001 /* LAHF/SAHF in IA-32e mode, 64bit sub*/
|
#define CPUID_LAHF 0x00000001 /* LAHF/SAHF in IA-32e mode, 64bit sub*/
|
||||||
|
|
||||||
#define CPUID_INTEL_FLAGS4 "\20\1LAHF"
|
#define CPUID_INTEL_FLAGS4 "\20\1LAHF"
|
||||||
|
|
||||||
/*
|
|
||||||
* AMD/VIA processor specific flags.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
/* AMD/VIA Fn80000001 extended features - %edx */
|
||||||
/* CPUID_SYSCALL SYSCALL/SYSRET */
|
/* CPUID_SYSCALL SYSCALL/SYSRET */
|
||||||
#define CPUID_MPC 0x00080000 /* Multiprocessing Capable */
|
#define CPUID_MPC 0x00080000 /* Multiprocessing Capable */
|
||||||
#define CPUID_NOX 0x00100000 /* No Execute Page Protection */
|
#define CPUID_NOX 0x00100000 /* No Execute Page Protection */
|
||||||
@ -161,8 +155,7 @@
|
|||||||
#define CPUID_EXT_FLAGS "\20\14SYSCALL/SYSRET\24MPC\25NOX\27MXX\32FFXSR" \
|
#define CPUID_EXT_FLAGS "\20\14SYSCALL/SYSRET\24MPC\25NOX\27MXX\32FFXSR" \
|
||||||
"\33P1GB\34RDTSCP\36LONG\0373DNOW2\0403DNOW"
|
"\33P1GB\34RDTSCP\36LONG\0373DNOW2\0403DNOW"
|
||||||
|
|
||||||
|
/* AMD Fn80000001 extended features - %ecx */
|
||||||
/* AMD Fn80000001 %ecx features */
|
|
||||||
#define CPUID_LAHF 0x00000001 /* LAHF/SAHF instruction */
|
#define CPUID_LAHF 0x00000001 /* LAHF/SAHF instruction */
|
||||||
#define CPUID_CMPLEGACY 0x00000002 /* Compare Legacy */
|
#define CPUID_CMPLEGACY 0x00000002 /* Compare Legacy */
|
||||||
#define CPUID_SVM 0x00000004 /* Secure Virtual Machine */
|
#define CPUID_SVM 0x00000004 /* Secure Virtual Machine */
|
||||||
|
Loading…
Reference in New Issue
Block a user