forked from Imagelibrary/rtems
Remove CPU_BIG_ENDIAN and CPU_LITTLE_ENDIAN
Use de-facto standard BYTE_ORDER instead. Close #2803.
This commit is contained in:
@@ -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.
|
* The ARM uses the PIC interrupt model.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -279,46 +279,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT
|
#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
|
* @ingroup CPUInterrupt
|
||||||
* The following defines the number of bits actually used in the
|
* The following defines the number of bits actually used in the
|
||||||
|
|||||||
@@ -261,8 +261,6 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
|
#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
|
* The following defines the number of bits actually used in the
|
||||||
|
|||||||
@@ -114,14 +114,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_PROVIDES_IDLE_THREAD_BODY FALSE
|
#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 CPU_MAXIMUM_PROCESSORS 32
|
||||||
|
|
||||||
#define I386_CONTEXT_CONTROL_EFLAGS_OFFSET 0
|
#define I386_CONTEXT_CONTROL_EFLAGS_OFFSET 0
|
||||||
|
|||||||
@@ -273,46 +273,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
#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
|
* @ingroup CPUInterrupt
|
||||||
* The following defines the number of bits actually used in the
|
* The following defines the number of bits actually used in the
|
||||||
|
|||||||
@@ -295,46 +295,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
#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
|
* @ingroup CPUInterrupt
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -104,14 +104,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
#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
|
#define CPU_MAXIMUM_PROCESSORS 32
|
||||||
|
|
||||||
#if ( CPU_HARDWARE_FP == TRUE ) && !defined( __mcoldfire__ )
|
#if ( CPU_HARDWARE_FP == TRUE ) && !defined( __mcoldfire__ )
|
||||||
|
|||||||
@@ -268,22 +268,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
#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
|
* The following defines the number of bits actually used in the
|
||||||
* interrupt field of the task mode. How those bits map to the
|
* interrupt field of the task mode. How those bits map to the
|
||||||
|
|||||||
@@ -245,13 +245,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT
|
#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
|
* The following defines the number of bits actually used in the
|
||||||
* interrupt field of the task mode. How those bits map to the
|
* interrupt field of the task mode. How those bits map to the
|
||||||
|
|||||||
@@ -67,10 +67,6 @@ extern "C" {
|
|||||||
#define CPU_STRUCTURE_ALIGNMENT \
|
#define CPU_STRUCTURE_ALIGNMENT \
|
||||||
RTEMS_SECTION( ".sdata" ) RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
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_STACK_MINIMUM_SIZE (4 * 1024)
|
||||||
|
|
||||||
#define CPU_SIZEOF_POINTER 4
|
#define CPU_SIZEOF_POINTER 4
|
||||||
|
|||||||
@@ -319,46 +319,6 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
#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
|
* @ingroup CPUInterrupt
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -253,8 +253,6 @@ extern "C" {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
|
#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
|
* The following defines the number of bits actually used in the
|
||||||
|
|||||||
@@ -86,19 +86,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
#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?
|
* Does the CPU have hardware floating point?
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -217,22 +217,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
#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
|
* The following defines the number of bits actually used in the
|
||||||
* interrupt field of the task mode. How those bits map to the
|
* interrupt field of the task mode. How those bits map to the
|
||||||
|
|||||||
@@ -207,22 +207,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
|
#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
|
* The following defines the number of bits actually used in the
|
||||||
* interrupt field of the task mode. How those bits map to the
|
* interrupt field of the task mode. How those bits map to the
|
||||||
|
|||||||
@@ -182,14 +182,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( 16 )
|
#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
|
* The following defines the number of bits actually used in the
|
||||||
* interrupt field of the task mode. How those bits map to the
|
* interrupt field of the task mode. How those bits map to the
|
||||||
|
|||||||
@@ -272,46 +272,6 @@ extern "C" {
|
|||||||
|
|
||||||
#define CPU_STRUCTURE_ALIGNMENT
|
#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
|
* @ingroup CPUInterrupt
|
||||||
* The following defines the number of bits actually used in the
|
* The following defines the number of bits actually used in the
|
||||||
|
|||||||
Reference in New Issue
Block a user