diff options
author | Michal Simek <monstr@monstr.eu> | 2010-08-12 11:47:11 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-10-12 16:51:34 +1000 |
commit | b98cba0911c7d0c0486d600c2aa646395adf32f4 (patch) | |
tree | f57fa9258c56e9ec3246b3e6236c36f079aea0f7 /arch/microblaze/include/asm | |
parent | d69f8f41af5c8a1cc0b062cf2c7fbbfdbfe8e72d (diff) |
microblaze: Support little-endian microblaze target
Microblaze little-endian toolchain should export
__MICROBLAZEEL__.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm')
-rw-r--r-- | arch/microblaze/include/asm/byteorder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/microblaze/include/asm/byteorder.h b/arch/microblaze/include/asm/byteorder.h index a4a75b7a6dc..b2757a41f8a 100644 --- a/arch/microblaze/include/asm/byteorder.h +++ b/arch/microblaze/include/asm/byteorder.h @@ -50,6 +50,10 @@ static __inline__ __u16 ___arch__swab16 (__u16 half_word) #endif /* __GNUC__ */ +#ifdef __MICROBLAZEEL__ +#include <linux/byteorder/little_endian.h> +#else #include <linux/byteorder/big_endian.h> +#endif #endif /* __MICROBLAZE_BYTEORDER_H__ */ |