cpu.h revision 1
1N/A/* Sample usage: CPU_FEATURE_P(cpu.x86_capability, FPU) */ 1N/A#
define NCAPINTS 4 /* Currently we have 4 32-bit words worth of info */ 1N/A/* Intel-defined CPU features, CPUID level 0x00000001, word 0 */ 1N/A#
define X86_FEATURE_CMOV (0*
32+
15)
/* CMOV instruction (FCMOVCC and FCOMI too if FPU present) */ 1N/A /* of FPU context), and CR4.OSFXSR available */ 1N/A/* AMD-defined CPU features, CPUID level 0x80000001, word 1 */ 1N/A/* Don't duplicate feature flags which are redundant with Intel! */ 1N/A/* Transmeta-defined CPU features, CPUID level 0x80860001, word 2 */ 1N/A/* Other features, Linux-defined mapping, word 3 */ 1N/A/* This range is used for feature bits which conflict or are synthesized */ 1N/A * Generic CPUID function 1N/A unsigned int *
eax,
unsigned int *
ebx,
unsigned int *
ecx,
unsigned int *
edx)
1N/A * CPUID functions returning a single datum 1N/A :
"bx",
"cx",
"dx");
1N/A * Intel CPU features in CR4 1N/A :
/* no outputs */ \
1N/A "movl %%cr0, %0\n\t" \
1N/A "movl %%cr3, %0\n\t" \
1N/A "movl %%cr4, %0\n\t" \
1N/A#
endif /* I386_BITS_CPU_H */