Ignore:
Timestamp:
2008-04-03T20:05:06Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
776f2e6
Parents:
dfa7bac
Message:

Each architecture should only announce its endianity.
The conversion macros should be defined only once.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/arm32/include/byteorder.h

    rdfa7bac r5d494b3  
    3737#define KERN_arm32_BYTEORDER_H_
    3838
    39 #include <byteorder.h>
    40 
    4139#ifdef BIG_ENDIAN
    42 
    43 #define uint16_t_le2host(n)             uint16_t_byteorder_swap(n)
    44 #define uint32_t_le2host(n)             uint32_t_byteorder_swap(n)
    45 #define uint64_t_le2host(n)             uint64_t_byteorder_swap(n)
    46 
    47 #define uint16_t_be2host(n)             (n)
    48 #define uint32_t_be2host(n)             (n)
    49 #define uint64_t_be2host(n)             (n)
    50 
     40#define ARCH_IS_BIG_ENDIAN
    5141#else
    52 
    53 #define uint16_t_le2host(n)             (n)
    54 #define uint32_t_le2host(n)             (n)
    55 #define uint64_t_le2host(n)             (n)
    56 
    57 #define uint16_t_be2host(n)             uint16_t_byteorder_swap(n)
    58 #define uint32_t_be2host(n)             uint32_t_byteorder_swap(n)
    59 #define uint64_t_be2host(n)             uint64_t_byteorder_swap(n)
    60 
     42#define ARCH_IS_LITTLE_ENDIAN
    6143#endif
    6244
Note: See TracChangeset for help on using the changeset viewer.