mirror of
https://gitlab.com/80486DX2-66/gists
synced 2024-11-09 21:32:02 +05:30
cpuid_vendor_id.mod.c: make use of enum
This commit is contained in:
parent
6efb83187f
commit
339eb170ec
@ -25,10 +25,12 @@
|
|||||||
|
|
||||||
typedef unsigned int cpuid_t[4];
|
typedef unsigned int cpuid_t[4];
|
||||||
|
|
||||||
#define EAX 0
|
enum CPU_registers {
|
||||||
#define EBX 1
|
EAX = 0,
|
||||||
#define ECX 2
|
EBX,
|
||||||
#define EDX 3
|
ECX,
|
||||||
|
EDX
|
||||||
|
};
|
||||||
|
|
||||||
// https://elixir.bootlin.com/linux/latest/source/arch/x86/include/asm/
|
// https://elixir.bootlin.com/linux/latest/source/arch/x86/include/asm/
|
||||||
// processor.h#L216
|
// processor.h#L216
|
||||||
|
Loading…
Reference in New Issue
Block a user