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/vax/atomic Add the missing __sync_* ops...



details:   https://anonhg.NetBSD.org/src/rev/aa41380c12f0
branches:  trunk
changeset: 793653:aa41380c12f0
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Feb 22 08:53:33 2014 +0000

description:
Add the missing __sync_* ops to libc

diffstat:

 common/lib/libc/arch/vax/atomic/Makefile.inc |  13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 7926e551dc6a -r aa41380c12f0 common/lib/libc/arch/vax/atomic/Makefile.inc
--- a/common/lib/libc/arch/vax/atomic/Makefile.inc      Sat Feb 22 08:24:27 2014 +0000
+++ b/common/lib/libc/arch/vax/atomic/Makefile.inc      Sat Feb 22 08:53:33 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile.inc,v 1.5 2009/01/04 17:54:29 pooka Exp $
+#      $NetBSD: Makefile.inc,v 1.6 2014/02/22 08:53:33 martin Exp $
 
 .if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
        || ${LIB} == "rump")
@@ -8,6 +8,17 @@
        atomic_inc_32_cas.c atomic_inc_32_nv_cas.c atomic_or_32_cas.c \
        atomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops_nop.c
 
+.if ${LIB} == "c"
+SRCS+= atomic_add_16_cas.c atomic_add_8_cas.c  \
+       atomic_sub_32_cas.c atomic_sub_16_cas.c atomic_sub_8_cas.c      \
+       atomic_or_16_cas.c atomic_or_8_cas.c    \
+       atomic_xor_32_cas.c atomic_xor_16_cas.c atomic_xor_8_cas.c      \
+       atomic_and_16_cas.c atomic_and_8_cas.c  \
+       atomic_nand_32_cas.c atomic_nand_16_cas.c atomic_nand_8_cas.c   \
+       atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c      \
+       atomic_swap_16_cas.c atomic_swap_8_cas.c
+.endif
+
 .endif
 
 .if defined(LIB) && (${LIB} == "c" || ${LIB} == "pthread")



Home | Main Index | Thread Index | Old Index