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/atomic Thumbify



details:   https://anonhg.NetBSD.org/src/rev/1d5e39b8cf2d
branches:  trunk
changeset: 789423:1d5e39b8cf2d
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Aug 19 00:35:06 2013 +0000

description:
Thumbify

diffstat:

 common/lib/libc/arch/arm/atomic/atomic_cas_up.S |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 021ac2959e88 -r 1d5e39b8cf2d common/lib/libc/arch/arm/atomic/atomic_cas_up.S
--- a/common/lib/libc/arch/arm/atomic/atomic_cas_up.S   Sun Aug 18 23:14:27 2013 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_cas_up.S   Mon Aug 19 00:35:06 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_cas_up.S,v 1.3 2013/08/10 19:59:21 matt Exp $   */
+/*     $NetBSD: atomic_cas_up.S,v 1.4 2013/08/19 00:35:06 matt Exp $   */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -35,10 +35,16 @@
 ENTRY(_atomic_cas_up)
        .hidden _C_LABEL(_atomic_cas_up)
        mov     r3, r0
+       .align  0
 RAS_START_ASM_HIDDEN(_atomic_cas)
        ldr     r0, [r3]
        cmp     r0, r1
+#if defined(__thumb__)
+       beq     1f
+#else
        streq   r2, [r3]
+#endif
+       .align  0
 RAS_END_ASM_HIDDEN(_atomic_cas)
-       RET
+1:     RET
 END(_atomic_cas_up)



Home | Main Index | Thread Index | Old Index