arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD
[oweals/u-boot.git] / arch / arm / lib / memcpy.S
index eeaf0035297efb010dbf14e3848e619f5f2b6d50..7d9fc0f9be400e5f934b9cf9c252aedc602515ed 100644 (file)
@@ -13,7 +13,7 @@
 #include <linux/linkage.h>
 #include <asm/assembler.h>
 
-#ifdef CONFIG_SYS_THUMB_BUILD
+#if defined(CONFIG_SYS_THUMB_BUILD) && !defined(MEMCPY_NO_THUMB_BUILD)
 #define W(instr)       instr.w
 #else
 #define W(instr)       instr
@@ -62,7 +62,7 @@
 
 /* Prototype: void *memcpy(void *dest, const void *src, size_t n); */
        .syntax unified
-#ifdef CONFIG_SYS_THUMB_BUILD
+#if defined(CONFIG_SYS_THUMB_BUILD) && !defined(MEMCPY_NO_THUMB_BUILD)
        .thumb
        .thumb_func
 #endif