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];
|
||||
|
||||
#define EAX 0
|
||||
#define EBX 1
|
||||
#define ECX 2
|
||||
#define EDX 3
|
||||
enum CPU_registers {
|
||||
EAX = 0,
|
||||
EBX,
|
||||
ECX,
|
||||
EDX
|
||||
};
|
||||
|
||||
// https://elixir.bootlin.com/linux/latest/source/arch/x86/include/asm/
|
||||
// processor.h#L216
|
||||
|
Loading…
Reference in New Issue
Block a user