diff options
author | jlemon <jlemon@FreeBSD.org> | 1999-06-24 20:08:56 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 1999-06-24 20:08:56 +0000 |
commit | d72e12804725f6bae688bb4dc2542e4f9790636a (patch) | |
tree | 4ee82a066c608ef75b7e3c3a821cf72f2173d68b | |
parent | db6e1d6b4ac6d711c9780017f799496f2045ae02 (diff) | |
download | FreeBSD-src-d72e12804725f6bae688bb4dc2542e4f9790636a.zip FreeBSD-src-d72e12804725f6bae688bb4dc2542e4f9790636a.tar.gz |
Only include AMD wt_alloc routines if I586_CPU is defined. Fixes
CPU_WT_ALLOC for cyrix chips.
Submitted by: "Brian Smith" <dbsoft@technologist.com>
-rw-r--r-- | sys/amd64/amd64/identcpu.c | 4 | ||||
-rw-r--r-- | sys/i386/i386/identcpu.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/identcpu.c b/sys/amd64/amd64/identcpu.c index f3aaccf..e68f79a 100644 --- a/sys/amd64/amd64/identcpu.c +++ b/sys/amd64/amd64/identcpu.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: Id: machdep.c,v 1.193 1996/06/18 01:22:04 bde Exp - * $Id: identcpu.c,v 1.63 1999/05/29 06:57:38 phk Exp $ + * $Id: identcpu.c,v 1.64 1999/06/24 03:47:54 green Exp $ */ #include "opt_cpu.h" @@ -299,7 +299,7 @@ printcpuinfo(void) strcat(cpu_model, "Unknown"); break; } -#ifdef CPU_WT_ALLOC +#if defined(I586_CPU) && defined(CPU_WT_ALLOC) if ((cpu_id & 0xf00) == 0x500) { if (((cpu_id & 0x0f0) > 0) && ((cpu_id & 0x0f0) < 0x60) diff --git a/sys/i386/i386/identcpu.c b/sys/i386/i386/identcpu.c index f3aaccf..e68f79a 100644 --- a/sys/i386/i386/identcpu.c +++ b/sys/i386/i386/identcpu.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: Id: machdep.c,v 1.193 1996/06/18 01:22:04 bde Exp - * $Id: identcpu.c,v 1.63 1999/05/29 06:57:38 phk Exp $ + * $Id: identcpu.c,v 1.64 1999/06/24 03:47:54 green Exp $ */ #include "opt_cpu.h" @@ -299,7 +299,7 @@ printcpuinfo(void) strcat(cpu_model, "Unknown"); break; } -#ifdef CPU_WT_ALLOC +#if defined(I586_CPU) && defined(CPU_WT_ALLOC) if ((cpu_id & 0xf00) == 0x500) { if (((cpu_id & 0x0f0) > 0) && ((cpu_id & 0x0f0) < 0x60) |