summaryrefslogtreecommitdiffstats
path: root/lib/libc/arm/string/memcmp.S
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/arm/string/memcmp.S')
-rw-r--r--lib/libc/arm/string/memcmp.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/arm/string/memcmp.S b/lib/libc/arm/string/memcmp.S
index 63a00ef..6fd8130 100644
--- a/lib/libc/arm/string/memcmp.S
+++ b/lib/libc/arm/string/memcmp.S
@@ -66,6 +66,8 @@
__FBSDID("$FreeBSD$");
+.syntax unified
+
ENTRY(memcmp)
mov ip, r0
#if defined(_KERNEL) && !defined(_STANDALONE)
@@ -76,7 +78,7 @@ ENTRY(memcmp)
/* Are both addresses aligned the same way? */
cmp r2, #0x00
- eornes r3, ip, r1
+ eorsne r3, ip, r1
RETeq /* len == 0, or same addresses! */
tst r3, #0x03
subne r2, r2, #0x01
OpenPOWER on IntegriCloud