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



details:   https://anonhg.NetBSD.org/src/rev/75d413db2377
branches:  trunk
changeset: 326919:75d413db2377
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Feb 22 12:12:30 2014 +0000

description:
Add missing __sync_* ops to libc

diffstat:

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

diffs (27 lines):

diff -r 2572cc15dfc7 -r 75d413db2377 common/lib/libc/arch/sh3/atomic/Makefile.inc
--- a/common/lib/libc/arch/sh3/atomic/Makefile.inc      Sat Feb 22 11:28:18 2014 +0000
+++ b/common/lib/libc/arch/sh3/atomic/Makefile.inc      Sat Feb 22 12:12:30 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 12:12:30 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_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_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_swap_16_cas.c atomic_swap_8_cas.c \
+       atomic_cas_32_cas.c atomic_cas_16_cas.c atomic_cas_8_cas.c
+.endif
+
 .endif
 
 .if defined(LIB) && (${LIB} == "c" || ${LIB} == "pthread")



Home | Main Index | Thread Index | Old Index