microblaze: Fix ASM optimized code for LE
authorMichal Simek <monstr@monstr.eu>
Fri, 28 Jan 2011 12:26:54 +0000 (13:26 +0100)
committerMichal Simek <monstr@monstr.eu>
Fri, 28 Jan 2011 13:05:13 +0000 (14:05 +0100)
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 <monstr@monstr.eu>
arch/microblaze/lib/fastcopy.S

index fdc48bb065d89fe3b2443ef054d1a6ece3744b54..62021d7e249e0665cd6a1483c12de5b8b0bf5739 100644 (file)
  *     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 <linux/linkage.h>
        .text
        .globl  memcpy