Commit 9c0951e6 authored by Ahmed Samy's avatar Ahmed Samy

cpuid: apply the 32-bit fix

Signed-off-by: default avatarAhmed Samy <f.fallen45@gmail.com>
parent e40f5c50
......@@ -115,13 +115,13 @@ bool cpuid_is_supported(void)
#define ASM_POPF "popfq\n\t"
#define ASM_PUSHEAX "pushq %%rax\n\t"
#define ASM_POPEAX "popq %%rax\n\t"
#define ASM_PUSHECX "popq %%rcx\n\t"
#define ASM_PUSHECX "pushq %%rcx\n\t"
#elif UINTPTR_MAX == 0xffffffff
#define ASM_PUSHF "pushfl\n\t"
#define ASM_POPF "popfl\n\t"
#define ASM_PUSHEAX "pushl %%eax\n\t"
#define ASM_POPEAX "popl %%eax\n\t"
#define ASM_PUSHECX "popl %%ecx\n\t"
#define ASM_PUSHECX "pushl %%ecx\n\t"
#endif
int ret = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment