Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 At least make it compile even though it d...



details:   https://anonhg.NetBSD.org/src/rev/c97f013ff9bc
branches:  trunk
changeset: 537726:c97f013ff9bc
user:      gmcgarry <gmcgarry%NetBSD.org@localhost>
date:      Sat Oct 05 05:55:46 2002 +0000

description:
At least make it compile even though it doesn't make sense.

diffstat:

 sys/arch/i386/i386/pmc.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 572af8f598e0 -r c97f013ff9bc sys/arch/i386/i386/pmc.c
--- a/sys/arch/i386/i386/pmc.c  Sat Oct 05 05:43:38 2002 +0000
+++ b/sys/arch/i386/i386/pmc.c  Sat Oct 05 05:55:46 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmc.c,v 1.4 2002/06/07 04:04:47 gmcgarry Exp $ */
+/*     $NetBSD: pmc.c,v 1.5 2002/10/05 05:55:46 gmcgarry Exp $ */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.4 2002/06/07 04:04:47 gmcgarry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmc.c,v 1.5 2002/10/05 05:55:46 gmcgarry Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -66,11 +66,13 @@
 static void
 pmc_init(void)
 {
+       const char *cpu_vendor;
 
        if (pmc_initialized)
                return;
 
        pmc_type = PMC_TYPE_NONE;
+       cpu_vendor = i386_nocpuid_cpus[cpu].cpu_vendorname;
 
        switch (cpu_class) {
        case CPUCLASS_586:



Home | Main Index | Thread Index | Old Index