From: Michal Simek Date: Fri, 28 Jan 2011 12:26:54 +0000 (+0100) Subject: microblaze: Fix ASM optimized code for LE X-Git-Tag: firefly_0821_release~7613^2~2530^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=de93c3c119382cb888ca8a94b642dbcf8035525e;p=firefly-linux-kernel-4.4.55.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 fdc48bb065d8..62021d7e249e 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