aboutsummaryrefslogtreecommitdiff
path: root/lib/aarch64
diff options
context:
space:
mode:
authorDouglas Raillard <douglas.raillard@arm.com>2016-12-02 13:56:06 +0000
committerDouglas Raillard <douglas.raillard@arm.com>2016-12-14 10:44:20 +0000
commitea926532c3cc9ecc6c2379b7505ce3a840d909a1 (patch)
treee28c529f5072f8c4fc696b5a16ac75b923b6d068 /lib/aarch64
parent1b5fa6ef1082ffb9979df4aad91525eda571eb50 (diff)
downloadtrusted-firmware-a-ea926532c3cc9ecc6c2379b7505ce3a840d909a1.tar.gz
Fix integer comparison in memcpy16
Unsigned conditions should be used instead of signed ones when comparing addresses or sizes in assembly. Signed-off-by: Douglas Raillard <douglas.raillard@arm.com> Change-Id: Id3bd9ccaf58c37037761af35ac600907c4bb0580
Diffstat (limited to 'lib/aarch64')
-rw-r--r--lib/aarch64/misc_helpers.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/aarch64/misc_helpers.S b/lib/aarch64/misc_helpers.S
index e7c246ea23..574146f6db 100644
--- a/lib/aarch64/misc_helpers.S
+++ b/lib/aarch64/misc_helpers.S
@@ -123,7 +123,7 @@ func memcpy16
/* copy 16 bytes at a time */
m_loop16:
cmp x2, #16
- b.lt m_loop1
+ b.lo m_loop1
ldp x3, x4, [x1], #16
stp x3, x4, [x0], #16
sub x2, x2, #16