1
0
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:
Intel A80486DX2-66 2024-06-26 00:18:51 +03:00
parent 6efb83187f
commit 339eb170ec
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -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