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 Give the thumb atomic ops a ...



details:   https://anonhg.NetBSD.org/src/rev/21fbbb554eeb
branches:  trunk
changeset: 970032:21fbbb554eeb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Mar 09 11:21:54 2020 +0000

description:
Give the thumb atomic ops a chance of working

diffstat:

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

diffs (33 lines):

diff -r a03984973721 -r 21fbbb554eeb common/lib/libc/arch/arm/atomic/atomic_cas_up.S
--- a/common/lib/libc/arch/arm/atomic/atomic_cas_up.S   Mon Mar 09 08:33:15 2020 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_cas_up.S   Mon Mar 09 11:21:54 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_cas_up.S,v 1.7 2014/03/04 03:36:24 matt Exp $   */
+/*     $NetBSD: atomic_cas_up.S,v 1.8 2020/03/09 11:21:54 skrll Exp $  */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -41,6 +41,7 @@
        cmp     r0, r1
 #if defined(__thumb__)
        beq     1f
+       str     r2, [r3]
 #else
        streq   r2, [r3]
 #endif
@@ -75,6 +76,7 @@
        cmp     r0, r1
 #if defined(__thumb__)
        beq     1f
+       strh    r2, [r3]
 #else
        strheq  r2, [r3]
 #endif
@@ -91,6 +93,7 @@
        cmp     r0, r1
 #if defined(__thumb__)
        beq     1f
+       strb    r2, [r3]
 #else
        strbeq  r2, [r3]
 #endif



Home | Main Index | Thread Index | Old Index