FrostWing
A lightweight raw-control operating system.
Loading...
Searching...
No Matches
cpuid2.h
Go to the documentation of this file.
1
11#include <basics.h>
12#include <graphics.h>
13
24int cpuid_string(int code, int where[4]);
25
34cstring cpu_string(void);
35
48void cpuid(uint32 reg, uint32 *eax, uint32 *ebx, uint32 *ecx, uint32 *edx);
49
55cstring get_cpu_vendor(void);
56
62cstring get_cpu_name(void);
63
67void print_cpu_info(void);
68
73
78
83bool is_kvm_supported(void);
This is a basic header files with FrostWing specific short forms and basically a good for life header...
cstring get_cpu_name(void)
Retrieve the CPU name.
void cpuid(uint32 reg, uint32 *eax, uint32 *ebx, uint32 *ecx, uint32 *edx)
Executes the CPUID instruction and retrieves values of the specified registers.
void print_cpu_info(void)
Print CPU information, including the vendor and CPU string.
cstring get_cpu_vendor(void)
Retrieve the CPU vendor string.
void print_L3_cache_info(void)
Retrieve and print L3 cache information.
cstring cpu_string(void)
Returns a string representing the CPU type.
void print_L2_cache_info(void)
Retrieve and print L2 cache information.
void print_L1_cache_info(void)
Retrieve and print L1 cache information.
int cpuid_string(int code, int where[4])
Executes the CPUID instruction with the given code and stores the results.
Contains all the print functions.