]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/lib/memcpy.S
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / arch / arm / lib / memcpy.S
index eeaf0035297efb010dbf14e3848e619f5f2b6d50..0ca61210da7ed04a2d099e056d5c855cd3a4a1e5 100644 (file)
@@ -1,24 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  *  linux/arch/arm/lib/memcpy.S
  *
  *  Author:    Nicolas Pitre
  *  Created:   Sep 28, 2005
  *  Copyright: MontaVista Software, Inc.
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License version 2 as
- *  published by the Free Software Foundation.
  */
 
 #include <linux/linkage.h>
 #include <asm/assembler.h>
 
-#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 +53,7 @@
 
 /* Prototype: void *memcpy(void *dest, const void *src, size_t n); */
        .syntax unified
-#ifdef CONFIG_SYS_THUMB_BUILD
+#if CONFIG_IS_ENABLED(SYS_THUMB_BUILD) && !defined(MEMCPY_NO_THUMB_BUILD)
        .thumb
        .thumb_func
 #endif