aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2023-04-21 18:57:27 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2023-04-21 19:02:17 -0400
commite3b805ca3e3cb65a9d5f1d779e049242cc6beb27 (patch)
treefc702e64e6de1bc86381efccd1353e1036e00ab3 /main.c
parentae61e8123c0e83648c238b78e19131049c5196b3 (diff)
downloadwhatami-e3b805ca3e3cb65a9d5f1d779e049242cc6beb27.tar.gz
Was supposed to check for < 2, not < 0x80000004
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index e1be4f2..1748596 100644
--- a/main.c
+++ b/main.c
@@ -393,8 +393,8 @@ int main() {
struct utsname kinfo;
union regs_t reg;
- if (CPUID(0, &reg) && reg.gpr.eax < 0x80000004) {
- fprintf(stderr, "CPU is not supported\n");
+ if (CPUID(0, &reg) && 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
+}