From 62e20001a22537cd09005eaa87a882f508f37eb1 Mon Sep 17 00:00:00 2001 From: Owain Ainsworth Date: Wed, 9 Dec 2009 14:27:35 +0000 Subject: Detect the cache line size for the clflush instruction when we identify the cpu. ok kettenis@ as part of a larger diff. --- sys/arch/i386/include/cpu.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/i386/include') diff --git a/sys/arch/i386/include/cpu.h b/sys/arch/i386/include/cpu.h index 1380944ca1c..1511b4f15ec 100644 --- a/sys/arch/i386/include/cpu.h +++ b/sys/arch/i386/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.108 2009/06/03 00:49:12 art Exp $ */ +/* $OpenBSD: cpu.h,v 1.109 2009/12/09 14:27:34 oga Exp $ */ /* $NetBSD: cpu.h,v 1.35 1996/05/05 19:29:26 christos Exp $ */ /*- @@ -118,6 +118,7 @@ struct cpu_info { u_int32_t ci_model; /* extended cpuid model */ u_int32_t ci_feature_flags; /* X86 CPUID feature bits */ u_int32_t cpu_class; /* CPU class */ + u_int32_t ci_cflushsz; /* clflush cache-line size */ struct cpu_functions *ci_func; /* start/stop functions */ void (*cpu_setup)(struct cpu_info *); /* proc-dependant init */ -- cgit v1.2.3