aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze/lib/fastcopy.S
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2011-01-28 07:26:54 -0500
committerMichal Simek <monstr@monstr.eu>2011-01-28 08:05:13 -0500
commitde93c3c119382cb888ca8a94b642dbcf8035525e (patch)
tree8a82dd51d680ef83e8399a0a0d6f67d34f838a94 /arch/microblaze/lib/fastcopy.S
parent9c749e177ccc0b3ee9589425c7255079e7a726fc (diff)
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 <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/lib/fastcopy.S')
-rw-r--r--arch/microblaze/lib/fastcopy.S4
1 files changed, 4 insertions, 0 deletions
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 @@
29 * between mem locations with size of xfer spec'd in bytes 29 * between mem locations with size of xfer spec'd in bytes
30 */ 30 */
31 31
32#ifdef __MICROBLAZEEL__
33#error Microblaze LE not support ASM optimized lib func. Disable OPT_LIB_ASM.
34#endif
35
32#include <linux/linkage.h> 36#include <linux/linkage.h>
33 .text 37 .text
34 .globl memcpy 38 .globl memcpy