Changeset 4aa23c96 in rtems


Ignore:
Timestamp:
Jan 23, 2017, 7:12:18 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
3d20f5fb
Parents:
2711914f
git-author:
Sebastian Huber <sebastian.huber@…> (01/23/17 07:12:18)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/24/17 07:39:22)
Message:

Remove CPU_BIG_ENDIAN and CPU_LITTLE_ENDIAN

Use de-facto standard BYTE_ORDER instead.

Close #2803.

Location:
cpukit/score/cpu
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/cpu/arm/rtems/score/cpu.h

    r2711914f r4aa23c96  
    9797 */
    9898/**@{**/
    99 
    100 #if defined(__ARMEL__)
    101   #define CPU_BIG_ENDIAN FALSE
    102   #define CPU_LITTLE_ENDIAN TRUE
    103 #elif defined(__ARMEB__)
    104   #define CPU_BIG_ENDIAN TRUE
    105   #define CPU_LITTLE_ENDIAN FALSE
    106 #else
    107   #error "unknown endianness"
    108 #endif
    10999
    110100/*
  • cpukit/score/cpu/bfin/rtems/score/cpu.h

    r2711914f r4aa23c96  
    279279
    280280#define CPU_STRUCTURE_ALIGNMENT
    281 
    282 /**
    283  * @defgroup CPUEndian Processor Dependent Endianness Support
    284  *
    285  * This group assists in issues related to processor endianness.
    286  *
    287  */
    288 /**@{**/
    289 
    290 /**
    291  * Define what is required to specify how the network to host conversion
    292  * routines are handled.
    293  *
    294  * @note @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
    295  * same values.
    296  *
    297  * @see CPU_LITTLE_ENDIAN
    298  *
    299  * Port Specific Information:
    300  *
    301  * XXX document implementation including references if appropriate
    302  */
    303 #define CPU_BIG_ENDIAN                           FALSE
    304 
    305 /**
    306  * Define what is required to specify how the network to host conversion
    307  * routines are handled.
    308  *
    309  * @note @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
    310  * same values.
    311  *
    312  * @see CPU_BIG_ENDIAN
    313  *
    314  * Port Specific Information:
    315  *
    316  * XXX document implementation including references if appropriate
    317  */
    318 #define CPU_LITTLE_ENDIAN                        TRUE
    319 
    320 /** @} */
    321281
    322282/**
  • cpukit/score/cpu/epiphany/rtems/score/cpu.h

    r2711914f r4aa23c96  
    262262
    263263#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES     FALSE
    264 #define CPU_BIG_ENDIAN                           FALSE
    265 #define CPU_LITTLE_ENDIAN                        TRUE
    266264
    267265/*
  • cpukit/score/cpu/i386/rtems/score/cpu.h

    r2711914f r4aa23c96  
    114114
    115115#define CPU_PROVIDES_IDLE_THREAD_BODY    FALSE
    116 
    117 /*
    118  *  Define what is required to specify how the network to host conversion
    119  *  routines are handled.
    120  */
    121 
    122 #define CPU_BIG_ENDIAN                           FALSE
    123 #define CPU_LITTLE_ENDIAN                        TRUE
    124116
    125117#define CPU_MAXIMUM_PROCESSORS 32
  • cpukit/score/cpu/lm32/rtems/score/cpu.h

    r2711914f r4aa23c96  
    273273
    274274#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
    275 
    276 /**
    277  * @defgroup CPUEndian Processor Dependent Endianness Support
    278  *
    279  * This group assists in issues related to processor endianness.
    280  *
    281  */
    282 /**@{**/
    283 
    284 /**
    285  * Define what is required to specify how the network to host conversion
    286  * routines are handled.
    287  *
    288  * NOTE: @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
    289  * same values.
    290  *
    291  * @see CPU_LITTLE_ENDIAN
    292  *
    293  * Port Specific Information:
    294  *
    295  * XXX document implementation including references if appropriate
    296  */
    297 #define CPU_BIG_ENDIAN                           TRUE
    298 
    299 /**
    300  * Define what is required to specify how the network to host conversion
    301  * routines are handled.
    302  *
    303  * NOTE: @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
    304  * same values.
    305  *
    306  * @see CPU_BIG_ENDIAN
    307  *
    308  * Port Specific Information:
    309  *
    310  * XXX document implementation including references if appropriate
    311  */
    312 #define CPU_LITTLE_ENDIAN                        FALSE
    313 
    314 /** @} */
    315275
    316276/**
  • cpukit/score/cpu/m32c/rtems/score/cpu.h

    r2711914f r4aa23c96  
    295295
    296296#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
    297 
    298 /**
    299  * @defgroup CPUEndian Processor Dependent Endianness Support
    300  *
    301  * This group assists in issues related to processor endianness.
    302  *
    303  */
    304 /**@{**/
    305 
    306 /**
    307  * Define what is required to specify how the network to host conversion
    308  * routines are handled.
    309  *
    310  * NOTE: @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
    311  * same values.
    312  *
    313  * @see CPU_LITTLE_ENDIAN
    314  *
    315  * Port Specific Information:
    316  *
    317  * XXX document implementation including references if appropriate
    318  */
    319 #define CPU_BIG_ENDIAN                           TRUE
    320 
    321 /**
    322  * Define what is required to specify how the network to host conversion
    323  * routines are handled.
    324  *
    325  * NOTE: @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
    326  * same values.
    327  *
    328  * @see CPU_BIG_ENDIAN
    329  *
    330  * Port Specific Information:
    331  *
    332  * XXX document implementation including references if appropriate
    333  */
    334 #define CPU_LITTLE_ENDIAN                        FALSE
    335 
    336 /** @} */
    337297
    338298/**
  • cpukit/score/cpu/m68k/rtems/score/cpu.h

    r2711914f r4aa23c96  
    104104
    105105#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
    106 
    107 /*
    108  *  Define what is required to specify how the network to host conversion
    109  *  routines are handled.
    110  */
    111 
    112 #define CPU_BIG_ENDIAN                           TRUE
    113 #define CPU_LITTLE_ENDIAN                        FALSE
    114106
    115107#define CPU_MAXIMUM_PROCESSORS 32
  • cpukit/score/cpu/mips/rtems/score/cpu.h

    r2711914f r4aa23c96  
    268268
    269269#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
    270 
    271 /*
    272  *  Define what is required to specify how the network to host conversion
    273  *  routines are handled.
    274  */
    275 
    276 /* __MIPSEB__ or __MIPSEL__ is defined by GCC based on -EB or -EL command line options */
    277 #if defined(__MIPSEB__)
    278 #define CPU_BIG_ENDIAN                           TRUE
    279 #define CPU_LITTLE_ENDIAN                        FALSE
    280 #elif defined(__MIPSEL__)
    281 #define CPU_BIG_ENDIAN                           FALSE
    282 #define CPU_LITTLE_ENDIAN                        TRUE
    283 #else
    284 #error "Unknown endianness"
    285 #endif
    286270
    287271/*
  • cpukit/score/cpu/moxie/rtems/score/cpu.h

    r2711914f r4aa23c96  
    245245
    246246#define CPU_STRUCTURE_ALIGNMENT
    247 
    248 /*
    249  *  Define what is required to specify how the network to host conversion
    250  *  routines are handled.
    251  */
    252 #define CPU_BIG_ENDIAN                           TRUE
    253 #define CPU_LITTLE_ENDIAN                        FALSE
    254247
    255248/*
  • cpukit/score/cpu/nios2/rtems/score/cpu.h

    r2711914f r4aa23c96  
    6767#define CPU_STRUCTURE_ALIGNMENT \
    6868  RTEMS_SECTION( ".sdata" ) RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
    69 
    70 #define CPU_BIG_ENDIAN FALSE
    71 
    72 #define CPU_LITTLE_ENDIAN TRUE
    7369
    7470#define CPU_STACK_MINIMUM_SIZE (4 * 1024)
  • cpukit/score/cpu/no_cpu/rtems/score/cpu.h

    r2711914f r4aa23c96  
    319319 */
    320320#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
    321 
    322 /**
    323  * @defgroup CPUEndian Processor Dependent Endianness Support
    324  *
    325  * This group assists in issues related to processor endianness.
    326  *
    327  */
    328 /**@{**/
    329 
    330 /**
    331  * Define what is required to specify how the network to host conversion
    332  * routines are handled.
    333  *
    334  * NOTE: @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
    335  * same values.
    336  *
    337  * @see CPU_LITTLE_ENDIAN
    338  *
    339  * Port Specific Information:
    340  *
    341  * XXX document implementation including references if appropriate
    342  */
    343 #define CPU_BIG_ENDIAN                           TRUE
    344 
    345 /**
    346  * Define what is required to specify how the network to host conversion
    347  * routines are handled.
    348  *
    349  * NOTE: @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
    350  * same values.
    351  *
    352  * @see CPU_BIG_ENDIAN
    353  *
    354  * Port Specific Information:
    355  *
    356  * XXX document implementation including references if appropriate
    357  */
    358 #define CPU_LITTLE_ENDIAN                        FALSE
    359 
    360 /** @} */
    361321
    362322/**
  • cpukit/score/cpu/or1k/rtems/score/cpu.h

    r2711914f r4aa23c96  
    254254
    255255#define CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES     FALSE
    256 #define CPU_BIG_ENDIAN                           TRUE
    257 #define CPU_LITTLE_ENDIAN                        FALSE
    258256
    259257/*
  • cpukit/score/cpu/powerpc/rtems/score/cpu.h

    r2711914f r4aa23c96  
    8686
    8787#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
    88 
    89 /*
    90  *  Define what is required to specify how the network to host conversion
    91  *  routines are handled.
    92  */
    93 
    94 #if defined(__BIG_ENDIAN__) || defined(_BIG_ENDIAN)
    95 #define CPU_BIG_ENDIAN                           TRUE
    96 #define CPU_LITTLE_ENDIAN                        FALSE
    97 #else
    98 #define CPU_BIG_ENDIAN                           FALSE
    99 #define CPU_LITTLE_ENDIAN                        TRUE
    100 #endif
    10188
    10289/*
  • cpukit/score/cpu/sh/rtems/score/cpu.h

    r2711914f r4aa23c96  
    217217
    218218#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
    219 
    220 /*
    221  *  Define what is required to specify how the network to host conversion
    222  *  routines are handled.
    223  *
    224  *  NOTE: SHes can be big or little endian, the default is big endian
    225  */
    226 
    227 /* __LITTLE_ENDIAN__ is defined if -ml is given to gcc */
    228 #if defined(__LITTLE_ENDIAN__)
    229 #define CPU_BIG_ENDIAN                           FALSE
    230 #define CPU_LITTLE_ENDIAN                        TRUE
    231 #else
    232 #define CPU_BIG_ENDIAN                           TRUE
    233 #define CPU_LITTLE_ENDIAN                        FALSE
    234 #endif
    235219
    236220/*
  • cpukit/score/cpu/sparc/rtems/score/cpu.h

    r2711914f r4aa23c96  
    207207
    208208#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( CPU_CACHE_LINE_BYTES )
    209 
    210 /**
    211  * Define what is required to specify how the network to host conversion
    212  * routines are handled.
    213  *
    214  * The SPARC is big endian.
    215  */
    216 #define CPU_BIG_ENDIAN                           TRUE
    217 
    218 /**
    219  * Define what is required to specify how the network to host conversion
    220  * routines are handled.
    221  *
    222  * The SPARC is NOT little endian.
    223  */
    224 #define CPU_LITTLE_ENDIAN                        FALSE
    225209
    226210/**
  • cpukit/score/cpu/sparc64/rtems/score/cpu.h

    r2711914f r4aa23c96  
    182182
    183183#define CPU_STRUCTURE_ALIGNMENT RTEMS_ALIGNED( 16 )
    184 
    185 /*
    186  *  Define what is required to specify how the network to host conversion
    187  *  routines are handled.
    188  */
    189 
    190 #define CPU_BIG_ENDIAN                           TRUE
    191 #define CPU_LITTLE_ENDIAN                        FALSE
    192184
    193185/*
  • cpukit/score/cpu/v850/rtems/score/cpu.h

    r2711914f r4aa23c96  
    272272
    273273#define CPU_STRUCTURE_ALIGNMENT
    274 
    275 /**
    276  * @defgroup CPUEndian Processor Dependent Endianness Support
    277  *
    278  * This group assists in issues related to processor endianness.
    279  *
    280  */
    281 /**@{**/
    282 
    283 /**
    284  * Define what is required to specify how the network to host conversion
    285  * routines are handled.
    286  *
    287  * @note @a CPU_BIG_ENDIAN and @a CPU_LITTLE_ENDIAN should NOT have the
    288  * same values.
    289  *
    290  * @see CPU_LITTLE_ENDIAN
    291  *
    292  * Port Specific Information:
    293  *
    294  * The v850 is little endian.
    295  */
    296 #define CPU_BIG_ENDIAN  FALSE
    297 
    298 /**
    299  * Define what is required to specify how the network to host conversion
    300  * routines are handled.
    301  *
    302  * @note @ref CPU_BIG_ENDIAN and @ref CPU_LITTLE_ENDIAN should NOT have the
    303  * same values.
    304  *
    305  * @see CPU_BIG_ENDIAN
    306  *
    307  * Port Specific Information:
    308  *
    309  * The v850 is little endian.
    310  */
    311 #define CPU_LITTLE_ENDIAN TRUE
    312 
    313 /** @} */
    314274
    315275/**
Note: See TracChangeset for help on using the changeset viewer.