Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jan 2008 16:24:06 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 133790 for review
Message-ID:  <200801211624.m0LGO6r6054586@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133790

Change 133790 by imp@imp_paco-paco on 2008/01/21 16:23:19

	Make endian.h LOCORE safe.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/include/endian.h#7 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/include/endian.h#7 (text+ko) ====

@@ -34,7 +34,9 @@
 #define	_MACHINE_ENDIAN_H_
 
 #include <sys/cdefs.h>
+#ifndef _LOCORE
 #include <sys/_types.h>
+#endif
 
 #ifdef __cplusplus
 extern "C" {
@@ -65,6 +67,7 @@
 #define	BYTE_ORDER	_BYTE_ORDER
 #endif
 
+#ifndef LOCORE
 #if defined(__GNUCLIKE_BUILTIN_CONSTANT_P) && defined(__OPTIMIZE__)
 #define	__is_constant(x)	__builtin_constant_p(x)
 #else
@@ -134,6 +137,8 @@
 #define __htons(x)	(__bswap16((x)))
 #endif /* _MIPSEB */
 
+#endif /* LOCORE */
+
 #ifdef __cplusplus
 }
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801211624.m0LGO6r6054586>