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 :-( ).
This commit is contained in:
dyson 1996-12-07 03:46:20 +00:00
parent 9ad120279a
commit 9879b29792

View File

@ -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); \