diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-12-09 21:42:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-12-09 21:42:11 +0000 |
commit | aeb589705a0137fde8a58ec77c9fef00a2e757f9 (patch) | |
tree | 44e9487bc8f0b8da497f8254dc73cec00d2523c8 /sys/arch/amd64 | |
parent | 33940d41c16bbd792d98c9803b639ca33f8882af (diff) |
this does not even compile
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/identcpu.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/identcpu.c b/sys/arch/amd64/amd64/identcpu.c index 715982bd734..c5063b90c25 100644 --- a/sys/arch/amd64/amd64/identcpu.c +++ b/sys/arch/amd64/amd64/identcpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: identcpu.c,v 1.25 2009/12/09 14:27:33 oga Exp $ */ +/* $OpenBSD: identcpu.c,v 1.26 2009/12/09 21:42:10 deraadt Exp $ */ /* $NetBSD: identcpu.c,v 1.1 2003/04/26 18:39:28 fvdl Exp $ */ /* @@ -264,7 +264,7 @@ void identifycpu(struct cpu_info *ci) { u_int64_t last_tsc; - u_int32_t dummy, val, pnfeatset, cflushsz; + u_int32_t dummy, val, pnfeatset; u_int32_t brand[12]; u_int32_t vendor[4]; int i, max; @@ -354,6 +354,8 @@ identifycpu(struct cpu_info *ci) } if (!strncmp(cpu_model, "Intel", 5)) { + u_int32_t cflushsz; + CPUID(0x01, dummy, cflushsz, dummy, dummy); /* cflush cacheline size is equal to bits 15-8 of ebx * 8 */ ci->ci_cflushsz = ((cflushsz >> 8) & 0xff) * 8; |