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!
asm();
Re:asm();
Solved it:
Code: Select all
ULONG CPUID_Result=0;
asm ("movl $1,%%eax;cpuid;"
:"=a"(CPUID_Result)
: //Ingen input!
:"%ebx","%ecx","%edx");
Re:asm();
OT:
hehe, svensk?//Ingen input!