cpuid/x86: minor type formatting
This commit is contained in:
parent
db4d75bb1c
commit
14c9a103ef
@ -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 <fmt/ostream.h>
|
||||
|
||||
#include <cstdint>
|
||||
#include <ostream>
|
||||
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user