diff options
author | dyson <dyson@FreeBSD.org> | 1996-12-07 03:46:20 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-12-07 03:46:20 +0000 |
commit | efc1e2b6cffc972030b21e3f12db3d0b1bdd9660 (patch) | |
tree | 1755400d9a31f069ef023b5bf62c4e385483cad2 /sys/i386/include/endian.h | |
parent | db504681e62a4fa79a4b3f32ae5331a8d80772ba (diff) | |
download | FreeBSD-src-efc1e2b6cffc972030b21e3f12db3d0b1bdd9660.zip FreeBSD-src-efc1e2b6cffc972030b21e3f12db3d0b1bdd9660.tar.gz |
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 :-( ).
Diffstat (limited to 'sys/i386/include/endian.h')
-rw-r--r-- | sys/i386/include/endian.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/include/endian.h b/sys/i386/include/endian.h index dfa6268..1787c0f 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); \ |