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/amd64/include/byteorder.h

    rdfa7bac r5d494b3  
    3636#define KERN_amd64_BYTEORDER_H_
    3737
    38 #include <byteorder.h>
    39 
    4038/* AMD64 is little-endian */
    41 #define uint16_t_le2host(n)             (n)
    42 #define uint32_t_le2host(n)             (n)
    43 #define uint64_t_le2host(n)             (n)
    44 
    45 #define uint16_t_be2host(n)             uint16_t_byteorder_swap(n)
    46 #define uint32_t_be2host(n)             uint32_t_byteorder_swap(n)
    47 #define uint64_t_be2host(n)             uint64_t_byteorder_swap(n)
     39#define ARCH_IS_LITTLE_ENDIAN
    4840
    4941#endif
Note: See TracChangeset for help on using the changeset viewer.