summaryrefslogtreecommitdiff
path: root/sys/arch/i386/include
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2009-12-09 14:27:35 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2009-12-09 14:27:35 +0000
commit62e20001a22537cd09005eaa87a882f508f37eb1 (patch)
treecff0a579538216918ff25dff34c3970960bdd0b8 /sys/arch/i386/include
parentf699d60fad50f050a8c1c226bd1e9da0b20f59fb (diff)
Detect the cache line size for the clflush instruction when we identify
the cpu. ok kettenis@ as part of a larger diff.
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r--sys/arch/i386/include/cpu.h3
1 files changed, 2 insertions, 1 deletions
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 */