mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-25 11:15:34 +00:00
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:
parent
1badcc48ca
commit
66f61b8256
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=20185
|
@ -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); \
|
||||
|
|
Loading…
Reference in a new issue