summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/armv7-m/up_memcpy.S
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/armv7-m/up_memcpy.S')
-rw-r--r--nuttx/arch/arm/src/armv7-m/up_memcpy.S15
1 files changed, 15 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/armv7-m/up_memcpy.S b/nuttx/arch/arm/src/armv7-m/up_memcpy.S
index ea267f78f..84877b040 100644
--- a/nuttx/arch/arm/src/armv7-m/up_memcpy.S
+++ b/nuttx/arch/arm/src/armv7-m/up_memcpy.S
@@ -142,11 +142,26 @@ MEM_LongCopyTable:
* Input Parameters:
* r0 = destination, r1 = source, r2 = length
*
+ * Returned Value:
+ * r0 = destination r1-r3 burned
+ *
************************************************************************************/
+ .align 4
.thumb_func
+
memcpy:
push {r14}
+ push {r0}
+ bl _do_memcpy
+ pop {r0}
+ pop {pc}
+
+ .align 4
+
+ .thumb_func
+_do_memcpy:
+ push {r14}
/* This allows the inner workings to "assume" a minimum amount of bytes */
/* Quickly check for very short copies */