From: Michal Simek Date: Fri, 28 Jan 2011 12:26:54 +0000 (+0100) Subject: microblaze: Fix ASM optimized code for LE X-Git-Tag: v2.6.38-rc4~47^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=de93c3c119382cb888ca8a94b642dbcf8035525e;p=~shefty%2Frdma-dev.git microblaze: Fix ASM optimized code for LE Microblaze little-endian doesn't support ASM optimized library functions(memcpy/memmove). Kconfig doens't contain any information about endian that's why it is necessary to check it in the source code. The code is used with barrel shifter is used. Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/lib/fastcopy.S b/arch/microblaze/lib/fastcopy.S index fdc48bb065d..62021d7e249 100644 --- a/arch/microblaze/lib/fastcopy.S +++ b/arch/microblaze/lib/fastcopy.S @@ -29,6 +29,10 @@ * between mem locations with size of xfer spec'd in bytes */ +#ifdef __MICROBLAZEEL__ +#error Microblaze LE not support ASM optimized lib func. Disable OPT_LIB_ASM. +#endif + #include .text .globl memcpy