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,
#endif
static struct {
int feature;
unsigned mask;
uint32_t feature;
uint32_t mask;
bool use_edx; /* ecx will be used if false. */
} features[] = {
{ CF_MMX, 1 << 23, true },
......@@ -152,7 +152,7 @@ bool cpuid_has_feature(int feature, bool extended)
return has_feature(feature, ecx, edx);
}
static const char *cpuids[] = {
static const char *const cpuids[] = {
"Nooooooooone",
"AMDisbetter!",
"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