Subversion Repositories HelenOS

Rev

Rev 2314 | Rev 2317 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2314 Rev 2316
Line 100... Line 100...
100
static inline void cpuid(uint32_t cmd, cpu_info_t *info)
100
static inline void cpuid(uint32_t cmd, cpu_info_t *info)
101
{
101
{
102
    asm volatile (
102
    asm volatile (
103
        "movl %4, %%eax\n"
103
        "movl %4, %%eax\n"
104
        "cpuid\n"
104
        "cpuid\n"
105
       
-
 
106
        "movl %%eax, %0\n"
-
 
107
        "movl %%ebx, %1\n"
-
 
108
        "movl %%ecx, %2\n"
-
 
109
        "movl %%edx, %3\n"
-
 
110
        : "=a" (info->cpuid_eax), "=b" (info->cpuid_ebx), "=c" (info->cpuid_ecx), "=d" (info->cpuid_edx)
105
        : "=a" (info->cpuid_eax), "=b" (info->cpuid_ebx), "=c" (info->cpuid_ecx), "=d" (info->cpuid_edx)
111
        : "m" (cmd)
106
        : "m" (cmd)
112
    );
107
    );
113
}
108
}
114
 
109