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 Use a constant from <x86/specialreg.h>.



details:   https://anonhg.NetBSD.org/src/rev/c44e094355e2
branches:  trunk
changeset: 757229:c44e094355e2
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Aug 21 01:57:34 2010 +0000

description:
Use a constant from <x86/specialreg.h>.

diffstat:

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

diffs (27 lines):

diff -r f64339b405db -r c44e094355e2 sys/arch/x86/x86/tsc.c
--- a/sys/arch/x86/x86/tsc.c    Fri Aug 20 16:38:16 2010 +0000
+++ b/sys/arch/x86/x86/tsc.c    Sat Aug 21 01:57:34 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tsc.c,v 1.26 2010/04/18 23:47:51 jym Exp $     */
+/*     $NetBSD: tsc.c,v 1.27 2010/08/21 01:57:34 jruoho Exp $  */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.26 2010/04/18 23:47:51 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tsc.c,v 1.27 2010/08/21 01:57:34 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -128,7 +128,7 @@
                case 0x0f:
                        /* Check for "invariant TSC", bit 8 of %edx. */
                        x86_cpuid(0x80000007, descs);
-                       safe = (descs[3] & (1 << 8)) != 0;
+                       safe = (descs[3] & CPUID_APM_TSC) != 0;
                        break;
                }
        }



Home | Main Index | Thread Index | Old Index