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/sparc/atomic Provide the missing __sync...
details: https://anonhg.NetBSD.org/src/rev/15bf7bca816b
branches: trunk
changeset: 326895:15bf7bca816b
user: martin <martin%NetBSD.org@localhost>
date: Fri Feb 21 16:21:02 2014 +0000
description:
Provide the missing __sync_* ops for sparc.
diffstat:
common/lib/libc/arch/sparc/atomic/Makefile.inc | 17 +++++++++++++++--
common/lib/libc/arch/sparc/atomic/atomic_cas.S | 3 ++-
2 files changed, 17 insertions(+), 3 deletions(-)
diffs (48 lines):
diff -r 07cade40b713 -r 15bf7bca816b common/lib/libc/arch/sparc/atomic/Makefile.inc
--- a/common/lib/libc/arch/sparc/atomic/Makefile.inc Fri Feb 21 16:08:19 2014 +0000
+++ b/common/lib/libc/arch/sparc/atomic/Makefile.inc Fri Feb 21 16:21:02 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.16 2014/01/29 13:06:36 martin Exp $
+# $NetBSD: Makefile.inc,v 1.17 2014/02/21 16:21:02 martin Exp $
.include <bsd.own.mk>
@@ -21,7 +21,20 @@
SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c atomic_and_32_cas.c \
atomic_and_32_nv_cas.c atomic_dec_32_cas.c atomic_dec_32_nv_cas.c \
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.S
+ atomic_or_32_nv_cas.c atomic_swap_32_cas.c membar_ops.S \
+ atomic_cas_32_cas.c atomic_nand_32_cas.c atomic_sub_32_cas.c \
+ atomic_xor_32_cas.c
+. endif
+
+. if ${LIB} == "c"
+SRCS+= atomic_nand_16_cas.c atomic_nand_8_cas.c \
+ atomic_and_16_cas.c atomic_and_8_cas.c \
+ atomic_xor_16_cas.c atomic_xor_8_cas.c \
+ atomic_add_16_cas.c atomic_add_8_cas.c \
+ atomic_cas_16_cas.c atomic_cas_8_cas.c \
+ atomic_sub_16_cas.c atomic_sub_8_cas.c \
+ atomic_or_16_cas.c atomic_or_8_cas.c \
+ atomic_swap_16_cas.c atomic_swap_8_cas.c
. endif
. if (${LIB} == "kern" || ${LIB} == "rump")
diff -r 07cade40b713 -r 15bf7bca816b common/lib/libc/arch/sparc/atomic/atomic_cas.S
--- a/common/lib/libc/arch/sparc/atomic/atomic_cas.S Fri Feb 21 16:08:19 2014 +0000
+++ b/common/lib/libc/arch/sparc/atomic/atomic_cas.S Fri Feb 21 16:21:02 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atomic_cas.S,v 1.12 2013/09/12 15:36:14 joerg Exp $ */
+/* $NetBSD: atomic_cas.S,v 1.13 2014/02/21 16:21:02 martin Exp $ */
/*-
* Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
@@ -147,6 +147,7 @@
STRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32)
ATOMIC_OP_ALIAS(atomic_cas_ptr,_atomic_cas_32)
STRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_32)
+STRONG_ALIAS(__sync_val_compare_and_swap_4,_atomic_cas_32)
ATOMIC_OP_ALIAS(atomic_cas_32_ni,_atomic_cas_32)
STRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)
Home |
Main Index |
Thread Index |
Old Index