diff options
author | Michal Simek <monstr@monstr.eu> | 2011-01-28 13:26:54 +0100 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2011-01-28 14:05:13 +0100 |
commit | de93c3c119382cb888ca8a94b642dbcf8035525e (patch) | |
tree | 8a82dd51d680ef83e8399a0a0d6f67d34f838a94 /arch/microblaze/lib | |
parent | 9c749e177ccc0b3ee9589425c7255079e7a726fc (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')
-rw-r--r-- | arch/microblaze/lib/fastcopy.S | 4 |
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 @@ * 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 |