2022-01-26 00:01:06 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
2022-11-17 07:46:07 +00:00
|
|
|
File: AuCpuId.hpp
|
2022-01-26 00:01:06 +00:00
|
|
|
Date: 2022-1-25
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace Aurora::HWInfo
|
|
|
|
{
|
2024-01-02 02:49:23 +00:00
|
|
|
union CPUIdContext
|
|
|
|
{
|
|
|
|
struct
|
|
|
|
{
|
|
|
|
AuUInt32 eax;
|
|
|
|
AuUInt32 ebx;
|
|
|
|
AuUInt32 ecx;
|
|
|
|
AuUInt32 edx;
|
|
|
|
};
|
|
|
|
int regs[4];
|
|
|
|
};
|
|
|
|
|
|
|
|
CPUIdContext cpuid(AuUInt32 a);
|
|
|
|
|
2022-01-26 00:01:06 +00:00
|
|
|
void SetCpuId();
|
|
|
|
}
|