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/aarch64/atomic Comment nit



details:   https://anonhg.NetBSD.org/src/rev/e993e3f563e5
branches:  trunk
changeset: 955676:e993e3f563e5
user:      skrll <skrll%NetBSD.org@localhost>
date:      Wed Oct 07 07:31:47 2020 +0000

description:
Comment nit

diffstat:

 common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S |   4 ++--
 common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S |   4 ++--
 common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S |   4 ++--
 common/lib/libc/arch/aarch64/atomic/atomic_cas_8.S  |   4 ++--
 common/lib/libc/arch/aarch64/atomic/atomic_op_asm.h |  10 +++++-----
 5 files changed, 13 insertions(+), 13 deletions(-)

diffs (117 lines):

diff -r 2d82b54d3293 -r e993e3f563e5 common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S
--- a/common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S       Tue Oct 06 23:51:05 2020 +0000
+++ b/common/lib/libc/arch/aarch64/atomic/atomic_cas_16.S       Wed Oct 07 07:31:47 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_cas_16.S,v 1.2 2020/08/12 12:59:57 skrll Exp $ */
+/* $NetBSD: atomic_cas_16.S,v 1.3 2020/10/07 07:31:47 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "atomic_op_asm.h"
 
 ENTRY_NP(_atomic_cas_16)
-       mov     x4, x0                  /* we need r0 for return value */
+       mov     x4, x0                  /* we need x0 for return value */
 1:     ldxrh   w0, [x4]                /* load old value */
        cmp     w0, w1                  /*   compare? */
        b.ne    2f
diff -r 2d82b54d3293 -r e993e3f563e5 common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S
--- a/common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S       Tue Oct 06 23:51:05 2020 +0000
+++ b/common/lib/libc/arch/aarch64/atomic/atomic_cas_32.S       Wed Oct 07 07:31:47 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_cas_32.S,v 1.2 2020/08/12 12:59:57 skrll Exp $ */
+/* $NetBSD: atomic_cas_32.S,v 1.3 2020/10/07 07:31:47 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "atomic_op_asm.h"
 
 ENTRY_NP(_atomic_cas_32)
-       mov     x4, x0                  /* we need r0 for return value */
+       mov     x4, x0                  /* we need x0 for return value */
 1:     ldxr    w0, [x4]                /* load old value */
        cmp     w0, w1                  /*   compare? */
        b.ne    2f                      /*     return if different */
diff -r 2d82b54d3293 -r e993e3f563e5 common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S
--- a/common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S       Tue Oct 06 23:51:05 2020 +0000
+++ b/common/lib/libc/arch/aarch64/atomic/atomic_cas_64.S       Wed Oct 07 07:31:47 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_cas_64.S,v 1.4 2020/08/12 12:59:57 skrll Exp $ */
+/* $NetBSD: atomic_cas_64.S,v 1.5 2020/10/07 07:31:47 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "atomic_op_asm.h"
 
 ENTRY_NP(_atomic_cas_64)
-       mov     x4, x0                  /* we need r0 for return value */
+       mov     x4, x0                  /* we need x0 for return value */
 1:     ldxr    x0, [x4]                /* load old value */
        cmp     x0, x1                  /*   compare? */
        b.ne    2f                      /*     return if different */
diff -r 2d82b54d3293 -r e993e3f563e5 common/lib/libc/arch/aarch64/atomic/atomic_cas_8.S
--- a/common/lib/libc/arch/aarch64/atomic/atomic_cas_8.S        Tue Oct 06 23:51:05 2020 +0000
+++ b/common/lib/libc/arch/aarch64/atomic/atomic_cas_8.S        Wed Oct 07 07:31:47 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_cas_8.S,v 1.2 2020/08/12 12:59:57 skrll Exp $ */
+/* $NetBSD: atomic_cas_8.S,v 1.3 2020/10/07 07:31:47 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "atomic_op_asm.h"
 
 ENTRY_NP(_atomic_cas_8)
-       mov     x4, x0                  /* we need r0 for return value */
+       mov     x4, x0                  /* we need x0 for return value */
 1:     ldxrb   w0, [x4]                /* load old value */
        cmp     w0, w1                  /*   compare? */
        b.ne    2f
diff -r 2d82b54d3293 -r e993e3f563e5 common/lib/libc/arch/aarch64/atomic/atomic_op_asm.h
--- a/common/lib/libc/arch/aarch64/atomic/atomic_op_asm.h       Tue Oct 06 23:51:05 2020 +0000
+++ b/common/lib/libc/arch/aarch64/atomic/atomic_op_asm.h       Wed Oct 07 07:31:47 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_op_asm.h,v 1.3 2019/02/08 06:56:56 ryo Exp $ */
+/* $NetBSD: atomic_op_asm.h,v 1.4 2020/10/07 07:34:29 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
 
 #define        ATOMIC_OP8_NV(OP, INSN)                                         \
 ENTRY_NP(_atomic_##OP##_8_nv)                                          ;\
-       mov     x4, x0                  /* need r0 for return value */  ;\
+       mov     x4, x0                  /* need x0 for return value */  ;\
 1:     ldxrb   w0, [x4]                /* load old value */            ;\
        INSN    w0, w0, w1              /* calc new (return) value */   ;\
        stxrb   w3, w0, [x4]            /* try to store */              ;\
@@ -69,7 +69,7 @@
 
 #define        ATOMIC_OP16_NV(OP, INSN)                                        \
 ENTRY_NP(_atomic_##OP##_16_nv)                                         ;\
-       mov     x4, x0                  /* need r0 for return value */  ;\
+       mov     x4, x0                  /* need x0 for return value */  ;\
 1:     ldxrh   w0, [x4]                /* load old value */            ;\
        INSN    w0, w0, w1              /* calc new (return) value */   ;\
        stxrh   w3, w0, [x4]            /* try to store */              ;\
@@ -91,7 +91,7 @@
 
 #define        ATOMIC_OP32_NV(OP, INSN)                                        \
 ENTRY_NP(_atomic_##OP##_32_nv)                                         ;\
-       mov     x4, x0                  /* need r0 for return value */  ;\
+       mov     x4, x0                  /* need x0 for return value */  ;\
 1:     ldxr    w0, [x4]                /* load old value */            ;\
        INSN    w0, w0, w1              /* calc new (return) value */   ;\
        stxr    w3, w0, [x4]            /* try to store */              ;\
@@ -113,7 +113,7 @@
 
 #define        ATOMIC_OP64_NV(OP, INSN)                                        \
 ENTRY_NP(_atomic_##OP##_64_nv)                                         ;\
-       mov     x4, x0                  /* need r0 for return value */  ;\
+       mov     x4, x0                  /* need x0 for return value */  ;\
 1:     ldxr    x0, [x4]                /* load old value */            ;\
        INSN    x0, x0, x1              /* calc new (return) value */   ;\
        stxr    w3, x0, [x4]            /* try to store */              ;\



Home | Main Index | Thread Index | Old Index