X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=arch%2Farm%2Flib%2Fmemcpy.S;h=00602e9cf820b7c71bd1a6b9c90f87c463e82a3c;hb=8ea05705a70135a94419b0d243666c1b51fe1f8d;hp=eeaf0035297efb010dbf14e3848e619f5f2b6d50;hpb=75d7a0d7f11ef66dcd3c27ae141f6b59f2ffd00d;p=oweals%2Fu-boot.git diff --git a/arch/arm/lib/memcpy.S b/arch/arm/lib/memcpy.S index eeaf003529..00602e9cf8 100644 --- a/arch/arm/lib/memcpy.S +++ b/arch/arm/lib/memcpy.S @@ -13,12 +13,6 @@ #include #include -#ifdef CONFIG_SYS_THUMB_BUILD -#define W(instr) instr.w -#else -#define W(instr) instr -#endif - #define LDR1W_SHIFT 0 #define STR1W_SHIFT 0 @@ -62,7 +56,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