#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
static inline void cpuid(unsigned leaf, struct cpuid *c)
{
+
__asm__ ("cpuid"
: "=a" (c->eax),
"=b" (c->ebx),
if (family == 0x06 || family == 0x0f)
printf(" (base = %d, extended = %d)", model, extmodel);
putchar('\n');
- printf("stepping = %d\n", type);
+ printf("stepping = %d\n", stepping);
}
}