Commit 842f343d authored by Viktor Oreshkin's avatar Viktor Oreshkin

Cast to uint* in __get_cpuid (Fix #59)

parent 3ee1c472
......@@ -32,8 +32,17 @@ kdb_cpuid_t *kdb_cpuid (void) {
assert (cached.magic == CPUID_MAGIC);
return &cached;
}
int a;
assert(__get_cpuid(1, &a, &cached.ebx, &cached.ecx, &cached.edx) != 0);
unsigned int a;
assert(
__get_cpuid(1,
&a,
(unsigned int*) &cached.ebx,
(unsigned int*) &cached.ecx,
(unsigned int*) &cached.edx
) != 0
);
cached.magic = CPUID_MAGIC;
return &cached;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment