Changeset 5d494b3 in mainline for kernel/arch/mips32


Ignore:
Timestamp:
2008-04-03T20:05:06Z (18 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.

Location:
kernel/arch/mips32
Files:
2 edited

Legend:

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

    rdfa7bac r5d494b3  
    3636#define KERN_mips32_BYTEORDER_H_
    3737
    38 #include <byteorder.h>
    39 
    4038#ifdef BIG_ENDIAN
    41 
    42 #define uint16_t_le2host(n)             uint16_t_byteorder_swap(n)
    43 #define uint32_t_le2host(n)             uint32_t_byteorder_swap(n)
    44 #define uint64_t_le2host(n)             uint64_t_byteorder_swap(n)
    45 
    46 #define uint16_t_be2host(n)             (n)
    47 #define uint32_t_be2host(n)             (n)
    48 #define uint64_t_be2host(n)             (n)
    49 
     39#define ARCH_IS_BIG_ENDIAN
    5040#else
    51 
    52 #define uint16_t_le2host(n)             (n)
    53 #define uint32_t_le2host(n)             (n)
    54 #define uint64_t_le2host(n)             (n)
    55 
    56 #define uint16_t_be2host(n)             uint16_t_byteorder_swap(n)
    57 #define uint32_t_be2host(n)             uint32_t_byteorder_swap(n)
    58 #define uint64_t_be2host(n)             uint64_t_byteorder_swap(n)
    59 
     41#define ARCH_IS_LITTLE_ENDIAN
    6042#endif
    6143
  • kernel/arch/mips32/src/drivers/arc.c

    rdfa7bac r5d494b3  
    3737#include <print.h>
    3838#include <arch.h>
    39 #include <arch/byteorder.h>
     39#include <byteorder.h>
    4040#include <arch/mm/frame.h>
    4141#include <mm/frame.h>
Note: See TracChangeset for help on using the changeset viewer.