chiark / gitweb /
debian/control: Include `prlimit' and `x86-model' in the metapackage.
[misc] / x86-model.c
index 59640c711d1a552c53ef4ae98559ad552195e426..05c47c6f25052be4f66ce03fc2f775f3779af82e 100644 (file)
@@ -32,7 +32,7 @@
 #include <mLib/quis.h>
 #include <mLib/report.h>
 
-#if !defined(__GNUC__) || !defined(__i386__)
+#if !defined(__GNUC__) || (!defined(__i386__) && !defined(__amd64__))
 #  error "This isn't going to work."
 #endif
 
@@ -44,6 +44,7 @@ struct cpuid { unsigned eax, ebx, ecx, edx; };
 
 static inline void cpuid(unsigned leaf, struct cpuid *c)
 {
+
   __asm__ ("cpuid"
           : "=a" (c->eax),
             "=b" (c->ebx),
@@ -84,7 +85,7 @@ static void identify(unsigned f)
     if (family == 0x06 || family == 0x0f)
       printf(" (base = %d, extended = %d)", model, extmodel);
     putchar('\n');
-    printf("stepping = %d\n", type);
+    printf("stepping = %d\n", stepping);
   }
 }