From aeb589705a0137fde8a58ec77c9fef00a2e757f9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Wed, 9 Dec 2009 21:42:11 +0000 Subject: this does not even compile --- sys/arch/amd64/amd64/identcpu.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch/amd64') 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; -- cgit v1.2.3