Commit 2df53ae1 authored by Ahmed Samy's avatar Ahmed Samy

cpuid: use uint32_t instead of int/unsigned

Signed-off-by: default avatarAhmed Samy <f.fallen45@gmail.com>
parent e9a04de2
...@@ -62,8 +62,8 @@ static void ___cpuid(cpuid_t info, uint32_t *eax, uint32_t *ebx, uint32_t *ecx, ...@@ -62,8 +62,8 @@ static void ___cpuid(cpuid_t info, uint32_t *eax, uint32_t *ebx, uint32_t *ecx,
#endif #endif
static struct { static struct {
int feature; uint32_t feature;
unsigned mask; uint32_t mask;
bool use_edx; /* ecx will be used if false. */ bool use_edx; /* ecx will be used if false. */
} features[] = { } features[] = {
{ CF_MMX, 1 << 23, true }, { CF_MMX, 1 << 23, true },
...@@ -152,7 +152,7 @@ bool cpuid_has_feature(int feature, bool extended) ...@@ -152,7 +152,7 @@ bool cpuid_has_feature(int feature, bool extended)
return has_feature(feature, ecx, edx); return has_feature(feature, ecx, edx);
} }
static const char *cpuids[] = { static const char *const cpuids[] = {
"Nooooooooone", "Nooooooooone",
"AMDisbetter!", "AMDisbetter!",
"AuthenticAMD", "AuthenticAMD",
......
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