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 Explicitly name the register...



details:   https://anonhg.NetBSD.org/src/rev/3713f72fc0e4
branches:  trunk
changeset: 325020:3713f72fc0e4
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Nov 30 20:43:53 2013 +0000

description:
Explicitly name the register pairs.

diffstat:

 common/lib/libc/arch/arm/atomic/atomic_add_64.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 5169f2e602bb -r 3713f72fc0e4 common/lib/libc/arch/arm/atomic/atomic_add_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_add_64.S   Sat Nov 30 20:30:22 2013 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_add_64.S   Sat Nov 30 20:43:53 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_add_64.S,v 1.9 2013/11/08 22:42:52 matt Exp $   */
+/*     $NetBSD: atomic_add_64.S,v 1.10 2013/11/30 20:43:53 joerg Exp $ */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -39,10 +39,10 @@
        mov     r3, r2
        mov     r2, r1
 #endif
-1:     ldrexd  r0, [ip]                /* load old value */
+1:     ldrexd  r0, r1, [ip]            /* load old value */
        adds    LO, LO, NLO             /* calculate new value lo */
        adcs    HI, HI, NHI             /* calculate new value hi */
-       strexd  r4, r0, [ip]            /* try to store */
+       strexd  r4, r0, r1, [ip]        /* try to store */
        cmp     r4, #0                  /*   succeed? */
        bne     1b                      /*     no, try again? */
 #ifdef _ARM_ARCH_7



Home | Main Index | Thread Index | Old Index