From 66f61b82562ac5795d46194bff40b521136d7cd4 Mon Sep 17 00:00:00 2001 From: John Dyson Date: Sat, 7 Dec 1996 03:46:20 +0000 Subject: [PATCH] Change endian.h so that when a kernel is compiled without I386_CPU, and with one of the following (I486_CPU,I586_CPU,I686_CPU) so it can take advantage of the very quick bswap insn. This keeps LKMs from being built to take advantage of the insn, but also makes sure that the LKMs can be run on all CPUs. (The LKMs don't pick up the CPU options :-( ). --- sys/i386/include/endian.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h index dfa62682078d..1787c0f94636 100644 --- a/sys/i386/include/endian.h +++ b/sys/i386/include/endian.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: @(#)endian.h 7.8 (Berkeley) 4/3/91 - * $Id: endian.h,v 1.8 1996/11/29 07:04:03 dyson Exp $ + * $Id: endian.h,v 1.9 1996/11/29 16:22:22 dyson Exp $ */ #ifndef _MACHINE_ENDIAN_H_ @@ -64,7 +64,7 @@ __extension__ ({ register u_long __X = (x); \ : "0" (__X)); \ __X; }) -#if defined(KERNEL) && !defined(I386_CPU) +#if defined(KERNEL) && (defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU)) && !defined(I386_CPU) #define __byte_swap_long(x) \ __extension__ ({ register u_long __X = (x); \