From e049977033ba43c14a81cde1dad9543b3dd1f8e6 Mon Sep 17 00:00:00 2001 From: msaitoh Date: Wed, 2 Aug 2000 11:32:41 +0000 Subject: [PATCH] check _BYTE_ORDER instead of BYTE_ORDER --- 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(-) diff --git a/sys/arch/sh3/include/coff_machdep.h b/sys/arch/sh3/include/coff_machdep.h index 4b76776f7cc6..4f7f36077713 100644 --- a/sys/arch/sh3/include/coff_machdep.h +++ b/sys/arch/sh3/include/coff_machdep.h @@ -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 --git a/sys/arch/sh3/include/ieee.h b/sys/arch/sh3/include/ieee.h index 7f82b7643cc6..c8ec1b044aea 100644 --- a/sys/arch/sh3/include/ieee.h +++ b/sys/arch/sh3/include/ieee.h @@ -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 @@ struct ieee_ext { 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 --git a/sys/arch/sh3/include/intcreg.h b/sys/arch/sh3/include/intcreg.h index 3623625f1043..98aaf85c6f03 100644 --- a/sys/arch/sh3/include/intcreg.h +++ b/sys/arch/sh3/include/intcreg.h @@ -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 @@ struct sh3_intc { 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 @@ struct sh3_intc { 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 @@ struct sh3_intc { 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 --git a/sys/arch/sh3/include/sh_opcode.h b/sys/arch/sh3/include/sh_opcode.h index b0ce4f27d8d1..83b5a478ed0e 100644 --- a/sys/arch/sh3/include/sh_opcode.h +++ b/sys/arch/sh3/include/sh_opcode.h @@ -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 @@ typedef union { unsigned i: 8; } niType; #endif -#if BYTE_ORDER == LITTLE_ENDIAN +#if _BYTE_ORDER == LITTLE_ENDIAN struct { unsigned op: 16; } oType; diff --git a/sys/arch/sh3/include/va-sh.h b/sys/arch/sh3/include/va-sh.h index c046762db37d..be0e8592d21c 100644 --- a/sys/arch/sh3/include/va-sh.h +++ b/sys/arch/sh3/include/va-sh.h @@ -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 @@ enum __va_type_classes { #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