Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/include CPUID_CFLUSH bit is not for CFLUSH insn...



details:   https://anonhg.NetBSD.org/src/rev/dd8ddccea626
branches:  trunk
changeset: 353630:dd8ddccea626
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Mon May 15 04:02:52 2017 +0000

description:
CPUID_CFLUSH bit is not for CFLUSH insn but CLFLUSH insn, so modify comments
and snprintb() sring.

diffstat:

 sys/arch/x86/include/cpu.h        |  4 ++--
 sys/arch/x86/include/specialreg.h |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 23b64263267e -r dd8ddccea626 sys/arch/x86/include/cpu.h
--- a/sys/arch/x86/include/cpu.h        Mon May 15 01:03:47 2017 +0000
+++ b/sys/arch/x86/include/cpu.h        Mon May 15 04:02:52 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.h,v 1.69 2017/04/14 04:43:47 kamil Exp $   */
+/*     $NetBSD: cpu.h,v 1.70 2017/05/15 04:02:52 msaitoh Exp $ */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -180,7 +180,7 @@
        const struct cpu_functions *ci_func;  /* start/stop functions */
        struct trapframe *ci_ddb_regs;
 
-       u_int ci_cflush_lsize;  /* CFLUSH insn line size */
+       u_int ci_cflush_lsize;  /* CLFLUSH insn line size */
        struct x86_cache_info ci_cinfo[CAI_COUNT];
 
        union descriptor *ci_gdt;
diff -r 23b64263267e -r dd8ddccea626 sys/arch/x86/include/specialreg.h
--- a/sys/arch/x86/include/specialreg.h Mon May 15 01:03:47 2017 +0000
+++ b/sys/arch/x86/include/specialreg.h Mon May 15 04:02:52 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: specialreg.h,v 1.97 2017/04/22 04:24:25 nonaka Exp $   */
+/*     $NetBSD: specialreg.h,v 1.98 2017/05/15 04:02:52 msaitoh Exp $  */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -144,7 +144,7 @@
 #define CPUID_PAT      0x00010000      /* Page Attribute Table */
 #define CPUID_PSE36    0x00020000      /* 36-bit PSE */
 #define CPUID_PN       0x00040000      /* processor serial number */
-#define CPUID_CFLUSH   0x00080000      /* CFLUSH insn supported */
+#define CPUID_CFLUSH   0x00080000      /* CLFLUSH insn supported */
 #define CPUID_B20      0x00100000      /* reserved */
 #define CPUID_DS       0x00200000      /* Debug Store */
 #define CPUID_ACPI     0x00400000      /* ACPI performance modulation regs */
@@ -163,7 +163,7 @@
        "\5" "TSC"      "\6" "MSR"      "\7" "PAE"      "\10" "MCE" \
        "\11" "CX8"     "\12" "APIC"    "\13" "B10"     "\14" "SEP" \
        "\15" "MTRR"    "\16" "PGE"     "\17" "MCA"     "\20" "CMOV" \
-       "\21" "PAT"     "\22" "PSE36"   "\23" "PN"      "\24" "CFLUSH" \
+       "\21" "PAT"     "\22" "PSE36"   "\23" "PN"      "\24" "CLFLUSH" \
        "\25" "B20"     "\26" "DS"      "\27" "ACPI"    "\30" "MMX" \
        "\31" "FXSR"    "\32" "SSE"     "\33" "SSE2"    "\34" "SS" \
        "\35" "HTT"     "\36" "TM"      "\37" "IA64"    "\40" "SBF"



Home | Main Index | Thread Index | Old Index