Kernel: Cleanup internal CPUID functions declarations

This commit is contained in:
Bananymous 2025-01-14 22:57:44 +02:00
parent 9d497ad311
commit 609067cefa
1 changed files with 3 additions and 2 deletions

View File

@ -2,12 +2,13 @@
namespace CPUID namespace CPUID
{ {
void get_cpuid(uint32_t code, uint32_t* out)
static inline void get_cpuid(uint32_t code, uint32_t* out)
{ {
asm volatile("cpuid" : "=a"(out[0]), "=b"(out[1]), "=c"(out[2]), "=d"(out[3]) : "a"(code)); asm volatile("cpuid" : "=a"(out[0]), "=b"(out[1]), "=c"(out[2]), "=d"(out[3]) : "a"(code));
} }
void get_cpuid_string(uint32_t code, uint32_t* out) static inline void get_cpuid_string(uint32_t code, uint32_t* out)
{ {
asm volatile ("cpuid": "=a"(out[0]), "=b"(out[0]), "=d"(out[1]), "=c"(out[2]) : "a"(code)); asm volatile ("cpuid": "=a"(out[0]), "=b"(out[0]), "=d"(out[1]), "=c"(out[2]) : "a"(code));
} }