Skip to content

Commit

Permalink
microblaze: Fix ASM optimized code for LE
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
michalsimek committed Jan 28, 2011
1 parent 9c749e1 commit de93c3c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/microblaze/lib/fastcopy.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de93c3c

Please sign in to comment.