Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/include check _BYTE_ORDER instead of BYTE_ORDER



details:   https://anonhg.NetBSD.org/src/rev/1ef944aa8f1a
branches:  trunk
changeset: 495639:1ef944aa8f1a
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Aug 02 11:32:41 2000 +0000

description:
check _BYTE_ORDER instead of BYTE_ORDER

diffstat:

 sys/arch/sh3/include/coff_machdep.h |  10 +++++-----
 sys/arch/sh3/include/ieee.h         |  10 +++++-----
 sys/arch/sh3/include/intcreg.h      |  18 +++++++++---------
 sys/arch/sh3/include/sh_opcode.h    |   6 +++---
 sys/arch/sh3/include/va-sh.h        |   8 ++++----
 5 files changed, 26 insertions(+), 26 deletions(-)

diffs (177 lines):

diff -r e4d229a0190e -r 1ef944aa8f1a sys/arch/sh3/include/coff_machdep.h
--- a/sys/arch/sh3/include/coff_machdep.h       Wed Aug 02 11:07:51 2000 +0000
+++ b/sys/arch/sh3/include/coff_machdep.h       Wed Aug 02 11:32:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: coff_machdep.h,v 1.3 2000/06/04 16:24:01 mycroft Exp $ */
+/*     $NetBSD: coff_machdep.h,v 1.4 2000/08/02 11:32:41 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1994, 1995 Scott Bartram
@@ -51,14 +51,14 @@
 #define COFF_SEGMENT_ALIGNMENT(fp, ap) \
     (((fp)->f_flags & COFF_F_EXEC) == 0 ? 4 : 16)
 
-#ifndef BYTE_ORDER
-#error Define BYTE_ORDER!
+#ifndef _BYTE_ORDER
+#error Define _BYTE_ORDER!
 #endif
 
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
 #define COFF_BADMAG(ex) ((ex)->f_magic != COFF_MAGIC_SH3_BIG)
 #endif
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if _BYTE_ORDER == LITTLE_ENDIAN
 #define COFF_BADMAG(ex) ((ex)->f_magic != COFF_MAGIC_SH3_LITTLE)
 #endif
 
diff -r e4d229a0190e -r 1ef944aa8f1a sys/arch/sh3/include/ieee.h
--- a/sys/arch/sh3/include/ieee.h       Wed Aug 02 11:07:51 2000 +0000
+++ b/sys/arch/sh3/include/ieee.h       Wed Aug 02 11:32:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee.h,v 1.1 1999/09/13 10:31:18 itojun Exp $ */
+/*     $NetBSD: ieee.h,v 1.2 2000/08/02 11:32:42 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -87,11 +87,11 @@
 #define        EXT_EXPBITS     15
 #define        EXT_FRACBITS    112
 
-#ifndef BYTE_ORDER
-#error Define BYTE_ORDER!
+#ifndef _BYTE_ORDER
+#error Define _BYTE_ORDER!
 #endif
 
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
 struct ieee_single {
        u_int   sng_sign:1;
        u_int   sng_exp:8;
@@ -114,7 +114,7 @@
        u_int   ext_fracl;
 };
 #endif
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if _BYTE_ORDER == LITTLE_ENDIAN
 struct ieee_single {
        u_int   sng_frac:23;
        u_int   sng_exp:8;
diff -r e4d229a0190e -r 1ef944aa8f1a sys/arch/sh3/include/intcreg.h
--- a/sys/arch/sh3/include/intcreg.h    Wed Aug 02 11:07:51 2000 +0000
+++ b/sys/arch/sh3/include/intcreg.h    Wed Aug 02 11:32:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intcreg.h,v 1.2 1999/09/16 12:48:35 msaitoh Exp $ */
+/* $NetBSD: intcreg.h,v 1.3 2000/08/02 11:32:42 msaitoh Exp $ */
 
 /*-
  * Copyright (C) 1999 SAITOH Masanobu.  All rights reserved.
@@ -29,8 +29,8 @@
 #ifndef _SH3_INTCREG_H__
 #define _SH3_INTCREG_H__
 
-#ifndef BYTE_ORDER
-#error Define BYTE_ORDER!
+#ifndef _BYTE_ORDER
+#error Define _BYTE_ORDER!
 #endif
 
 /*
@@ -41,13 +41,13 @@
        union {
                unsigned short   WORD;  /* Word Access */
                struct {                /* Bit  Access */
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
                        /* Bit 15..0 */
                        unsigned char NMIL:1;
                        unsigned char     :6;
                        unsigned char NMIE:1;
                        unsigned char     :8;
-#else  /* BYTE_ORDER == LITTLE_ENDIAN */
+#else  /* _BYTE_ORDER == LITTLE_ENDIAN */
                        /* Bit 0..15 */
                        unsigned char     :8;
                        unsigned char NMIE:1;
@@ -61,13 +61,13 @@
        union {
                unsigned short   WORD;  /* Word Access */
                struct {                /* Bit  Access */
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
                        /* Bit 15..0 */
                        unsigned short TMU0 :4;
                        unsigned short TMU1 :4;
                        unsigned short TMU2 :4;
                        unsigned short RTC  :4;
-#else  /* BYTE_ORDER == LITTLE_ENDIAN */
+#else  /* _BYTE_ORDER == LITTLE_ENDIAN */
                        /* Bit 0..15 */
                        unsigned short RTC  :4;
                        unsigned short TMU2 :4;
@@ -81,13 +81,13 @@
        union {
                unsigned short   WORD;  /* Word Access */
                struct {                /* Bit  Access */
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
                        /* Bit 15..0 */
                        unsigned short WDT  :4;
                        unsigned short REF  :4;
                        unsigned short SCI  :4;
                        unsigned short      :4;
-#else  /* BYTE_ORDER == LITTLE_ENDIAN */
+#else  /* _BYTE_ORDER == LITTLE_ENDIAN */
                        /* Bit 0..15 */
                        unsigned short      :4;
                        unsigned short SCI  :4;
diff -r e4d229a0190e -r 1ef944aa8f1a sys/arch/sh3/include/sh_opcode.h
--- a/sys/arch/sh3/include/sh_opcode.h  Wed Aug 02 11:07:51 2000 +0000
+++ b/sys/arch/sh3/include/sh_opcode.h  Wed Aug 02 11:32:41 2000 +0000
@@ -1,9 +1,9 @@
-/* $NetBSD: sh_opcode.h,v 1.1 1999/09/13 10:31:22 itojun Exp $ */
+/* $NetBSD: sh_opcode.h,v 1.2 2000/08/02 11:32:43 msaitoh Exp $ */
 
 typedef union {
        unsigned word;
 
-#if BYTE_ORDER == BIG_ENDIAN
+#if _BYTE_ORDER == BIG_ENDIAN
        struct {
                unsigned op: 16;
        } oType;
@@ -73,7 +73,7 @@
                unsigned i: 8;
        } niType;
 #endif
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if _BYTE_ORDER == LITTLE_ENDIAN
 struct {
                unsigned op: 16;
        } oType;
diff -r e4d229a0190e -r 1ef944aa8f1a sys/arch/sh3/include/va-sh.h
--- a/sys/arch/sh3/include/va-sh.h      Wed Aug 02 11:07:51 2000 +0000
+++ b/sys/arch/sh3/include/va-sh.h      Wed Aug 02 11:32:41 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: va-sh.h,v 1.3 2000/02/24 17:19:57 msaitoh Exp $ */
+/* $NetBSD: va-sh.h,v 1.4 2000/08/02 11:32:43 msaitoh Exp $ */
 
 /* This is just like the default gvarargs.h
    except for differences described below.  */
@@ -117,11 +117,11 @@
 #endif
 #define va_end(pvar)   ((void)0)
 
-#ifndef BYTE_ORDER
-#error Define BYTE_ORDER!
+#ifndef _BYTE_ORDER
+#error Define _BYTE_ORDER!
 #endif
 
-#if BYTE_ORDER == LITTLE_ENDIAN
+#if _BYTE_ORDER == LITTLE_ENDIAN
 #define __LITTLE_ENDIAN_P 1
 #else
 #define __LITTLE_ENDIAN_P 0



Home | Main Index | Thread Index | Old Index