diff options
author | 2002-05-31 09:44:53 +0000 | |
---|---|---|
committer | 2002-05-31 09:44:53 +0000 | |
commit | 0b32f0e6892eb294b67d47c15592bbfdce59b3b8 (patch) | |
tree | dc172141f0af78a67d3f5b33af8c284b4f04749a | |
parent | Support for "Intel PRO/100 VM" w/ id 0x1038. (diff) | |
download | wireguard-openbsd-0b32f0e6892eb294b67d47c15592bbfdce59b3b8.tar.xz wireguard-openbsd-0b32f0e6892eb294b67d47c15592bbfdce59b3b8.zip |
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> |