浏览代码

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>
Michal Simek 14 年之前
父节点
当前提交
de93c3c119
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      arch/microblaze/lib/fastcopy.S

+ 4 - 0
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