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 Fix __sync_lock_release_4 to...



details:   https://anonhg.NetBSD.org/src/rev/c4baa925aff5
branches:  trunk
changeset: 961891:c4baa925aff5
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Apr 24 20:29:04 2021 +0000

description:
Fix __sync_lock_release_4 to actually zeroise the whole 4bytes/32bits.

diffstat:

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

diffs (18 lines):

diff -r cdabef8c679a -r c4baa925aff5 common/lib/libc/arch/arm/atomic/atomic_swap.S
--- a/common/lib/libc/arch/arm/atomic/atomic_swap.S     Sat Apr 24 16:24:14 2021 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_swap.S     Sat Apr 24 20:29:04 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_swap.S,v 1.14 2015/05/17 20:57:11 justin Exp $  */
+/*     $NetBSD: atomic_swap.S,v 1.15 2021/04/24 20:29:04 skrll Exp $   */
 
 /*-
  * Copyright (c) 2007,2012 The NetBSD Foundation, Inc.
@@ -92,7 +92,7 @@
 #else
        mcr     p15, 0, r1, c7, c10, 5  /* data memory barrier */
 #endif
-       strb    r1, [r0]
+       str     r1, [r0]
        RET
 END(__sync_lock_release_4)
 #endif



Home | Main Index | Thread Index | Old Index