asm();
Posted: Thu Dec 23, 2004 12:59 pm
What's wrong with this (in GCC):
ULONG CPUID_Result=0;
asm ("movl $1,%%eax;cpuid;"
:"=a"(CPUID_Result)
: //Ingen input!
:"%eax","%ebx","%ecx","%edx");
All I want to do is call CPUID with EAX=1 and have to result stored in
CPUID_Result!
ULONG CPUID_Result=0;
asm ("movl $1,%%eax;cpuid;"
:"=a"(CPUID_Result)
: //Ingen input!
:"%eax","%ebx","%ecx","%edx");
All I want to do is call CPUID with EAX=1 and have to result stored in
CPUID_Result!