aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManish Pandey <manish.pandey2@arm.com>2020-08-03 22:24:29 +0000
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>2020-08-03 22:24:29 +0000
commit1313532320a68b1204a214b007e877ea3c8429d9 (patch)
tree7652250b84a719739c9c035b5fb0d50d35d8daa1
parent28e2daa90fc03f5ecba01f44c5e1661dd7147ed6 (diff)
parente6e7d71285936ca8fb7c804df2c8d63d9f077b0f (diff)
downloadtrusted-firmware-a-1313532320a68b1204a214b007e877ea3c8429d9.tar.gz
Merge "TF-A Aarch32: optimise memcpy4()" into integration
-rw-r--r--lib/aarch32/misc_helpers.S11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/aarch32/misc_helpers.S b/lib/aarch32/misc_helpers.S
index 6d2ec1c52e..e9734ac2c6 100644
--- a/lib/aarch32/misc_helpers.S
+++ b/lib/aarch32/misc_helpers.S
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2016-2020, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -149,17 +149,16 @@ m_loop4:
blo m_loop1
ldr r3, [r1], #4
str r3, [r0], #4
- sub r2, r2, #4
- b m_loop4
+ subs r2, r2, #4
+ bne m_loop4
+ bx lr
+
/* copy byte per byte */
m_loop1:
- cmp r2,#0
- beq m_end
ldrb r3, [r1], #1
strb r3, [r0], #1
subs r2, r2, #1
bne m_loop1
-m_end:
bx lr
endfunc memcpy4