From 14c9a103efce1db53d1933cad693e53fb94f090a Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 21 Feb 2024 14:53:24 +1000 Subject: [PATCH] cpuid/x86: minor type formatting --- cpuid/x86.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/cpuid/x86.cpp b/cpuid/x86.cpp index bff3da01..9aa02bf9 100644 --- a/cpuid/x86.cpp +++ b/cpuid/x86.cpp @@ -8,13 +8,13 @@ #include "x86.hpp" -#include "endian.hpp" -#include "view.hpp" -#include "bitwise.hpp" +#include "../std.hpp" +#include "../endian.hpp" +#include "../view.hpp" +#include "../bitwise.hpp" #include -#include #include using cruft::cpu::x86; @@ -23,15 +23,16 @@ using cruft::cpu::x86; /////////////////////////////////////////////////////////////////////////////// namespace { struct cpuid_t { - uint32_t a, b, c, d; + u32 a, b, c, d; }; } //----------------------------------------------------------------------------- -cpuid_t cpuid (u32 query, u32 param = 0) +static cpuid_t +cpuid (u32 query, u32 param = 0) { - cpuid_t res; + ::cpuid_t res; asm ( "cpuid"