diff options
author | Michal Simek <monstr@monstr.eu> | 2010-09-28 08:04:14 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2010-10-21 07:51:59 +0200 |
commit | 02b08045a0306c38131c6d7155c4034a775d40b1 (patch) | |
tree | e146f1811ec3c93ff4877a895e42b71a91932d2b /arch/microblaze/include/asm/checksum.h | |
parent | microblaze: KGDB little endian support (diff) | |
download | linux-02b08045a0306c38131c6d7155c4034a775d40b1.tar.xz linux-02b08045a0306c38131c6d7155c4034a775d40b1.zip |
microblaze: Add support for little-endian Microblaze
Microblaze little-endian toolchain exports __MICROBLAZEEL__
which is used in the kernel to identify little/big endian.
The most of the changes are in loading values from DTB which
is always big endian.
Little endian platforms are based on new AXI bus which has
impact to early uartlite initialization.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/checksum.h')
-rw-r--r-- | arch/microblaze/include/asm/checksum.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/microblaze/include/asm/checksum.h b/arch/microblaze/include/asm/checksum.h index 128bf03b54b7..0185cbefdda4 100644 --- a/arch/microblaze/include/asm/checksum.h +++ b/arch/microblaze/include/asm/checksum.h @@ -24,8 +24,13 @@ csum_tcpudp_nofold(__be32 saddr, __be32 daddr, unsigned short len, "addc %0, %0, %3\n\t" "addc %0, %0, r0\n\t" : "+&d" (sum) - : "d" (saddr), "d" (daddr), "d" (len + proto)); - + : "d" (saddr), "d" (daddr), +#ifdef __MICROBLAZEEL__ + "d" ((len + proto) << 8) +#else + "d" (len + proto) +#endif +); return sum; } |