allow inclusion of atomic ops in librump

This commit is contained in:
pooka 2009-01-04 17:54:29 +00:00
parent f2ba098cec
commit e77a29de65
14 changed files with 43 additions and 29 deletions

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.4 2008/09/29 08:43:00 ad Exp $
# $NetBSD: Makefile.inc,v 1.5 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
SRCS+= atomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \
atomic_inc.S atomic_or.S atomic_swap.S membar_ops.S

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.7 2008/09/29 08:43:00 ad Exp $
# $NetBSD: Makefile.inc,v 1.8 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
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 \

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.5 2008/09/29 08:43:00 ad Exp $
# $NetBSD: Makefile.inc,v 1.6 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread"
|| ${LIB} == "rump")
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 \

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.6 2008/09/29 08:43:00 ad Exp $
# $NetBSD: Makefile.inc,v 1.7 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
SRCS+= atomic_add_64_cas.c atomic_add_64_nv_cas.c atomic_and_64_cas.c \
atomic_and_64_nv_cas.c atomic_dec_64_cas.c atomic_dec_64_nv_cas.c \

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.2 2008/09/29 08:43:00 ad Exp $
# $NetBSD: Makefile.inc,v 1.3 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
SRCS+= atomic_add_32_cas.c atomic_add_32_nv_cas.c \
atomic_add_64_cas.c atomic_add_64_nv_cas.c \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.8 2008/09/29 08:43:00 ad Exp $
# $NetBSD: Makefile.inc,v 1.9 2009/01/04 17:54:29 pooka Exp $
#
# Note: The atomic operations here in these assembly files are atomic
@ -9,7 +9,8 @@
# others are merely single-instruction).
#
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
.if ${MACHINE_ARCH} != "m68000"
SRCS+= atomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.8 2008/09/29 08:43:00 ad Exp $
# $NetBSD: Makefile.inc,v 1.9 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
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 \
@ -20,7 +21,7 @@ CPPFLAGS+= -D__HAVE_ASM_ATOMIC_CAS_UP
.endif
.if defined(LIB) && (${LIB} == "kern")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "rump")
SRCS+= membar_ops.S

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.5 2008/09/29 08:43:00 ad Exp $
# $NetBSD: Makefile.inc,v 1.6 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
SRCS+= atomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \
atomic_inc.S atomic_or.S atomic_swap.S membar_ops.S

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.5 2008/09/29 08:43:00 ad Exp $
# $NetBSD: Makefile.inc,v 1.6 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
SRCS+= atomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \
atomic_inc.S atomic_or.S atomic_swap.S membar_ops.S

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.4 2008/09/29 08:43:01 ad Exp $
# $NetBSD: Makefile.inc,v 1.5 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
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 \

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.10 2008/09/29 08:43:01 ad Exp $
# $NetBSD: Makefile.inc,v 1.11 2009/01/04 17:54:29 pooka Exp $
.include <bsd.own.mk>
@ -14,7 +14,8 @@ SPARC64DIR= ${.PARSEDIR}/../../sparc64/atomic
. if defined(LIB)
. if (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
. if (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
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 \

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.5 2008/09/29 08:43:01 ad Exp $
# $NetBSD: Makefile.inc,v 1.6 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
SRCS+= atomic_add.S atomic_and.S atomic_cas.S atomic_dec.S \
atomic_inc.S atomic_or.S atomic_swap.S membar_ops.S

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.4 2008/09/29 08:43:01 ad Exp $
# $NetBSD: Makefile.inc,v 1.5 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
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 \

View File

@ -1,6 +1,7 @@
# $NetBSD: Makefile.inc,v 1.5 2008/09/29 08:43:01 ad Exp $
# $NetBSD: Makefile.inc,v 1.6 2009/01/04 17:54:29 pooka Exp $
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread")
.if defined(LIB) && (${LIB} == "kern" || ${LIB} == "c" || ${LIB} == "pthread" \
|| ${LIB} == "rump")
SRCS+= atomic.S