aboutsummaryrefslogtreecommitdiff
path: root/payloads/coreinfo/cpuinfo_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/coreinfo/cpuinfo_module.c')
-rw-r--r--payloads/coreinfo/cpuinfo_module.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/payloads/coreinfo/cpuinfo_module.c b/payloads/coreinfo/cpuinfo_module.c
index 0ea2dfce46..94379f3077 100644
--- a/payloads/coreinfo/cpuinfo_module.c
+++ b/payloads/coreinfo/cpuinfo_module.c
@@ -85,7 +85,7 @@ static const char *amd_cap_extended_ecx_flags[] = {
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
};
-static unsigned long vendor;
+static uint32_t vendor;
static unsigned int cpu_khz;
static void decode_flags(WINDOW *win, unsigned long reg, const char **flags,
@@ -114,7 +114,7 @@ static void decode_flags(WINDOW *win, unsigned long reg, const char **flags,
static void get_features(WINDOW *win, int *row)
{
- unsigned long eax, ebx, ecx, edx;
+ uint32_t eax, ebx, ecx, edx;
int lrow = *row;
wmove(win, lrow++, 1);
@@ -150,12 +150,12 @@ static void get_features(WINDOW *win, int *row)
static void do_name(WINDOW *win, int row)
{
char name[49], *p;
- unsigned long eax, ebx, ecx, edx;
- int i, t;
+ uint32_t eax, ebx, ecx, edx;
+ int t;
p = name;
- for (i = 0x80000002; i <= 0x80000004; i++) {
+ for (uint32_t i = 0x80000002; i <= 0x80000004; i++) {
docpuid(i, &eax, &ebx, &ecx, &edx);
if (eax == 0)
@@ -176,7 +176,7 @@ static void do_name(WINDOW *win, int row)
static int cpuinfo_module_redraw(WINDOW *win)
{
- unsigned long eax, ebx, ecx, edx;
+ uint32_t eax, ebx, ecx, edx;
unsigned int brand;
char *vstr;
int row = 2;