Source-Changes-HG archive

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

[src/trunk]: src/sys/altq define ALTQ_NOPCC if i386 and !I586_CPU and !I686_CPU.



details:   https://anonhg.NetBSD.org/src/rev/ac41f8b25553
branches:  trunk
changeset: 532072:ac41f8b25553
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri May 31 06:52:00 2002 +0000

description:
define ALTQ_NOPCC if i386 and !I586_CPU and !I686_CPU.
otherwise, kernel fails to compile.
report by "Federico G. Schwindt" <fgsch%olimpo.com.br@localhost>

diffstat:

 sys/altq/altq_var.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 51842fa20d86 -r ac41f8b25553 sys/altq/altq_var.h
--- a/sys/altq/altq_var.h       Fri May 31 05:54:36 2002 +0000
+++ b/sys/altq/altq_var.h       Fri May 31 06:52:00 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: altq_var.h,v 1.2 2000/12/14 08:49:51 thorpej Exp $     */
+/*     $NetBSD: altq_var.h,v 1.3 2002/05/31 06:52:00 itojun Exp $      */
 /*     $KAME: altq_var.h,v 1.7 2000/12/14 08:12:46 thorpej Exp $       */
 
 /*
@@ -104,6 +104,12 @@
 extern u_int32_t machclk_per_tick;
 extern void init_machclk(void);
 
+#if defined(__i386__) && !defined(I586_CPU) && !defined(I686_CPU)
+#ifndef ALTQ_NOPCC
+#define        ALTQ_NOPCC      /* TSC is not available, ALTQ_NOPCC needed */
+#endif
+#endif
+
 #if defined(__i386__) && !defined(ALTQ_NOPCC)
 /* for pentium tsc */
 #include <machine/cpufunc.h>



Home | Main Index | Thread Index | Old Index