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 Make this actually compile.



details:   https://anonhg.NetBSD.org/src/rev/1995e336d604
branches:  trunk
changeset: 538644:1995e336d604
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Thu Oct 24 07:43:21 2002 +0000

description:
Make this actually compile.

diffstat:

 sys/arch/i386/i386/machdep.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r b78f3fed3a6a -r 1995e336d604 sys/arch/i386/i386/machdep.c
--- a/sys/arch/i386/i386/machdep.c      Thu Oct 24 06:40:56 2002 +0000
+++ b/sys/arch/i386/i386/machdep.c      Thu Oct 24 07:43:21 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.493 2002/10/23 21:41:34 mycroft Exp $    */
+/*     $NetBSD: machdep.c,v 1.494 2002/10/24 07:43:21 fvdl Exp $       */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.493 2002/10/23 21:41:34 mycroft Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.494 2002/10/24 07:43:21 fvdl Exp $");
 
 #include "opt_cputype.h"
 #include "opt_ddb.h"
@@ -1414,10 +1414,9 @@
 void
 transmeta_cpu_setup(struct cpu_info *ci)
 {
-       u_int regs[4], nreg = 0;
-
-       do_cpuid(0x80860000, regs);
-       nreg = regs[0];
+       u_int nreg = 0, dummy;
+
+       CPUID(0x80860000, nreg, dummy, dummy, dummy);
        if (nreg >= 0x80860007)
                tmx86_has_longrun = 1;
 }



Home | Main Index | Thread Index | Old Index