diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-04-21 18:57:27 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-04-21 19:02:17 -0400 |
commit | e3b805ca3e3cb65a9d5f1d779e049242cc6beb27 (patch) | |
tree | fc702e64e6de1bc86381efccd1353e1036e00ab3 | |
parent | ae61e8123c0e83648c238b78e19131049c5196b3 (diff) | |
download | whatami-e3b805ca3e3cb65a9d5f1d779e049242cc6beb27.tar.gz |
Was supposed to check for < 2, not < 0x80000004
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -393,8 +393,8 @@ int main() { struct utsname kinfo; union regs_t reg; - if (CPUID(0, ®) && reg.gpr.eax < 0x80000004) { - fprintf(stderr, "CPU is not supported\n"); + if (CPUID(0, ®) && reg.gpr.eax < 2) { + fprintf(stderr, "CPU is not supported: 0x%08X\n", reg.gpr.eax); exit(1); } @@ -435,4 +435,4 @@ int main() { } return 0; -}
\ No newline at end of file +} |