AuroraRuntime/Source/HWInfo/AuCpuId.hpp
2024-01-02 05:54:22 +00:00

27 lines
445 B
C++

/***
Copyright (C) 2022 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AuCpuId.hpp
Date: 2022-1-25
Author: Reece
***/
#pragma once
namespace Aurora::HWInfo
{
union CPUIdContext
{
struct
{
AuUInt32 eax;
AuUInt32 ebx;
AuUInt32 ecx;
AuUInt32 edx;
};
int regs[4];
};
CPUIdContext cpuid(AuUInt32 a);
void SetCpuId();
}