Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/x86 Set ci->ci_cflush_lsize correctly. This bug...



details:   https://anonhg.NetBSD.org/src/rev/8274aa68c873
branches:  trunk
changeset: 356248:8274aa68c873
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Sep 12 07:19:36 2017 +0000

description:
Set ci->ci_cflush_lsize correctly. This bug was added in the last commit(1.56).

diffstat:

 sys/arch/x86/x86/identcpu.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7725d68c7592 -r 8274aa68c873 sys/arch/x86/x86/identcpu.c
--- a/sys/arch/x86/x86/identcpu.c       Tue Sep 12 05:28:31 2017 +0000
+++ b/sys/arch/x86/x86/identcpu.c       Tue Sep 12 07:19:36 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: identcpu.c,v 1.56 2017/09/07 06:40:42 msaitoh Exp $    */
+/*     $NetBSD: identcpu.c,v 1.57 2017/09/12 07:19:36 msaitoh Exp $    */
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.56 2017/09/07 06:40:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.57 2017/09/12 07:19:36 msaitoh Exp $");
 
 #include "opt_xen.h"
 
@@ -848,7 +848,7 @@
                /* CLFLUSH line size is next 8 bits */
                if (ci->ci_feat_val[0] & CPUID_CFLUSH)
                        ci->ci_cflush_lsize
-                           = __SHIFTOUT(miscbytes, CPUID_CLFUSH_SIZE);
+                           = __SHIFTOUT(miscbytes, CPUID_CLFUSH_SIZE) << 3;
                ci->ci_initapicid = __SHIFTOUT(miscbytes, CPUID_LOCAL_APIC_ID);
        }
 



Home | Main Index | Thread Index | Old Index