Remove CPU_BIG_ENDIAN and CPU_LITTLE_ENDIAN

Use de-facto standard BYTE_ORDER instead.

Close #2803.
This commit is contained in:
Sebastian Huber
2017-01-23 08:12:18 +01:00
parent 2711914f82
commit 4aa23c9641
17 changed files with 0 additions and 310 deletions

View File

@@ -97,16 +97,6 @@
*/
/**@{**/
#if defined(__ARMEL__)
#define CPU_BIG_ENDIAN FALSE
#define CPU_LITTLE_ENDIAN TRUE
#elif defined(__ARMEB__)
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
#else
#error "unknown endianness"
#endif
/*
* The ARM uses the PIC interrupt model.
*/

View File

@@ -279,46 +279,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT
/**
* @defgroup CPUEndian Processor Dependent Endianness Support
*
* This group assists in issues related to processor endianness.
*
*/
/**@{**/
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* @note @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_LITTLE_ENDIAN
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
#define CPU_BIG_ENDIAN FALSE
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* @note @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_BIG_ENDIAN
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
#define CPU_LITTLE_ENDIAN TRUE
/** @} */
/**
* @ingroup CPUInterrupt
* The following defines the number of bits actually used in the

View File

@@ -261,8 +261,6 @@ extern "C" {
*/
#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
#define CPU_BIG_ENDIAN FALSE
#define CPU_LITTLE_ENDIAN TRUE
/*
* The following defines the number of bits actually used in the

View File

@@ -114,14 +114,6 @@ extern "C" {
#define CPU_PROVIDES_IDLE_THREAD_BODY FALSE
/*
* Define what is required to specify how the network to host conversion
* routines are handled.
*/
#define CPU_BIG_ENDIAN FALSE
#define CPU_LITTLE_ENDIAN TRUE
#define CPU_MAXIMUM_PROCESSORS 32
#define I386_CONTEXT_CONTROL_EFLAGS_OFFSET 0

View File

@@ -273,46 +273,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/**
* @defgroup CPUEndian Processor Dependent Endianness Support
*
* This group assists in issues related to processor endianness.
*
*/
/**@{**/
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* NOTE: @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_LITTLE_ENDIAN
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
#define CPU_BIG_ENDIAN TRUE
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* NOTE: @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_BIG_ENDIAN
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
#define CPU_LITTLE_ENDIAN FALSE
/** @} */
/**
* @ingroup CPUInterrupt
* The following defines the number of bits actually used in the

View File

@@ -295,46 +295,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/**
* @defgroup CPUEndian Processor Dependent Endianness Support
*
* This group assists in issues related to processor endianness.
*
*/
/**@{**/
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* NOTE: @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_LITTLE_ENDIAN
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
#define CPU_BIG_ENDIAN TRUE
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* NOTE: @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_BIG_ENDIAN
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
#define CPU_LITTLE_ENDIAN FALSE
/** @} */
/**
* @ingroup CPUInterrupt
*

View File

@@ -104,14 +104,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/*
* Define what is required to specify how the network to host conversion
* routines are handled.
*/
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
#define CPU_MAXIMUM_PROCESSORS 32
#if ( CPU_HARDWARE_FP == TRUE ) && !defined( __mcoldfire__ )

View File

@@ -268,22 +268,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/*
* Define what is required to specify how the network to host conversion
* routines are handled.
*/
/* __MIPSEB__ or __MIPSEL__ is defined by GCC based on -EB or -EL command line options */
#if defined(__MIPSEB__)
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
#elif defined(__MIPSEL__)
#define CPU_BIG_ENDIAN FALSE
#define CPU_LITTLE_ENDIAN TRUE
#else
#error "Unknown endianness"
#endif
/*
* The following defines the number of bits actually used in the
* interrupt field of the task mode. How those bits map to the

View File

@@ -245,13 +245,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT
/*
* Define what is required to specify how the network to host conversion
* routines are handled.
*/
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
/*
* The following defines the number of bits actually used in the
* interrupt field of the task mode. How those bits map to the

View File

@@ -67,10 +67,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT \
RTEMS_SECTION( ".sdata" ) RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
#define CPU_BIG_ENDIAN FALSE
#define CPU_LITTLE_ENDIAN TRUE
#define CPU_STACK_MINIMUM_SIZE (4 * 1024)
#define CPU_SIZEOF_POINTER 4

View File

@@ -319,46 +319,6 @@ extern "C" {
*/
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/**
* @defgroup CPUEndian Processor Dependent Endianness Support
*
* This group assists in issues related to processor endianness.
*
*/
/**@{**/
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* NOTE: @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_LITTLE_ENDIAN
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
#define CPU_BIG_ENDIAN TRUE
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* NOTE: @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_BIG_ENDIAN
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
#define CPU_LITTLE_ENDIAN FALSE
/** @} */
/**
* @ingroup CPUInterrupt
*

View File

@@ -253,8 +253,6 @@ extern "C" {
*/
#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
/*
* The following defines the number of bits actually used in the

View File

@@ -86,19 +86,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/*
* Define what is required to specify how the network to host conversion
* routines are handled.
*/
#if defined(__BIG_ENDIAN__) || defined(_BIG_ENDIAN)
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
#else
#define CPU_BIG_ENDIAN FALSE
#define CPU_LITTLE_ENDIAN TRUE
#endif
/*
* Does the CPU have hardware floating point?
*

View File

@@ -217,22 +217,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/*
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* NOTE: SHes can be big or little endian, the default is big endian
*/
/* __LITTLE_ENDIAN__ is defined if -ml is given to gcc */
#if defined(__LITTLE_ENDIAN__)
#define CPU_BIG_ENDIAN FALSE
#define CPU_LITTLE_ENDIAN TRUE
#else
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
#endif
/*
* The following defines the number of bits actually used in the
* interrupt field of the task mode. How those bits map to the

View File

@@ -207,22 +207,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* The SPARC is big endian.
*/
#define CPU_BIG_ENDIAN TRUE
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* The SPARC is NOT little endian.
*/
#define CPU_LITTLE_ENDIAN FALSE
/**
* The following defines the number of bits actually used in the
* interrupt field of the task mode. How those bits map to the

View File

@@ -182,14 +182,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( 16 )
/*
* Define what is required to specify how the network to host conversion
* routines are handled.
*/
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
/*
* The following defines the number of bits actually used in the
* interrupt field of the task mode. How those bits map to the

View File

@@ -272,46 +272,6 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT
/**
* @defgroup CPUEndian Processor Dependent Endianness Support
*
* This group assists in issues related to processor endianness.
*
*/
/**@{**/
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* @note @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_LITTLE_ENDIAN
*
* Port Specific Information:
*
* The v850 is little endian.
*/
#define CPU_BIG_ENDIAN FALSE
/**
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* @note @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
* same values.
*
* @see CPU_BIG_ENDIAN
*
* Port Specific Information:
*
* The v850 is little endian.
*/
#define CPU_LITTLE_ENDIAN TRUE
/** @} */
/**
* @ingroup CPUInterrupt
* The following defines the number of bits actually used in the