Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/arch/arm/string Add a missing it gt before m...



details:   https://anonhg.NetBSD.org/src/rev/a5eebb06a96a
branches:  trunk
changeset: 789489:a5eebb06a96a
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Aug 20 16:34:47 2013 +0000

description:
Add a missing it gt before movgt for thumb

diffstat:

 common/lib/libc/arch/arm/string/strlen_arm.S |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r ca7669759f18 -r a5eebb06a96a common/lib/libc/arch/arm/string/strlen_arm.S
--- a/common/lib/libc/arch/arm/string/strlen_arm.S      Tue Aug 20 15:44:17 2013 +0000
+++ b/common/lib/libc/arch/arm/string/strlen_arm.S      Tue Aug 20 16:34:47 2013 +0000
@@ -29,7 +29,7 @@
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: strlen_arm.S,v 1.5 2013/08/20 08:06:30 matt Exp $")
+RCSID("$NetBSD: strlen_arm.S,v 1.6 2013/08/20 16:34:47 matt Exp $")
 
 #if defined(__thumb__) && !defined(_ARM_ARCH_T2)
 #error Only Thumb2 or ARM supported
@@ -159,6 +159,9 @@
        subs    r0, r0, r2              /* subtract start to get length */
 #ifdef STRNLEN
        cmp     r0, r4                  /* is it larger than maxlen? */
+#ifdef __thumb__
+       it      gt
+#endif
        movgt   r0, r4                  /*   yes, return maxlen */
        pop     {r4, r5}                /* restore registers */
 #endif



Home | Main Index | Thread Index | Old Index