diff options
author | Kenjiro Cho <kjc@cvs.openbsd.org> | 2002-05-31 09:44:54 +0000 |
---|---|---|
committer | Kenjiro Cho <kjc@cvs.openbsd.org> | 2002-05-31 09:44:54 +0000 |
commit | 0f930e8154839db1c2292005bd1f166f6d5bfd4c (patch) | |
tree | cfa4a55711e3d053f6fa6e6996cab2120861a0f5 | |
parent | 4d82cbd93cbd494f12f139190c58e67ca3cc3341 (diff) |
define ALTQ_NOPCC if i386 and !I586_CPU and !I686_CPU.
otherwise, kernel fails to compile.
pointed out and ok by fgsch@
-rw-r--r-- | sys/altq/altq_var.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/altq/altq_var.h b/sys/altq/altq_var.h index b6685a21d32..1668d801bdd 100644 --- a/sys/altq/altq_var.h +++ b/sys/altq/altq_var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: altq_var.h,v 1.4 2002/03/15 01:20:03 millert Exp $ */ +/* $OpenBSD: altq_var.h,v 1.5 2002/05/31 09:44:53 kjc Exp $ */ /* $KAME: altq_var.h,v 1.8 2001/02/09 09:44:41 kjc Exp $ */ /* @@ -111,6 +111,12 @@ extern u_int32_t machclk_freq; 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> |