summaryrefslogtreecommitdiff
path: root/atomic
diff options
context:
space:
mode:
authorianh <ianh@13f79535-47bb-0310-9956-ffa450edef68>2002-02-21 23:34:10 +0000
committerianh <ianh@13f79535-47bb-0310-9956-ffa450edef68>2002-02-21 23:34:10 +0000
commiteab8eb4c5de9a79c74fae0649935a46bc389978c (patch)
tree415d5498520e3b7f8f70ad3cd91709368fc76f97 /atomic
parent16668c953e9dad58915ac525d6f29f71defabb3b (diff)
downloadlibapr-eab8eb4c5de9a79c74fae0649935a46bc389978c.tar.gz
deal with the case where some processors in a product line are ancient and don't
have all the support we would like for atomic operations. this is intended for the sparc v7's out there which don't do CAS PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@63046 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'atomic')
-rw-r--r--atomic/solaris_sparc/.cvsignore1
-rw-r--r--atomic/solaris_sparc/Makefile.in8
-rw-r--r--atomic/solaris_sparc/apr_atomic_sparc_no_support.c5
3 files changed, 10 insertions, 4 deletions
diff --git a/atomic/solaris_sparc/.cvsignore b/atomic/solaris_sparc/.cvsignore
index 06e18a7aa..1c875e8e2 100644
--- a/atomic/solaris_sparc/.cvsignore
+++ b/atomic/solaris_sparc/.cvsignore
@@ -1,3 +1,4 @@
Makefile
*.lo
+*.S
.libs
diff --git a/atomic/solaris_sparc/Makefile.in b/atomic/solaris_sparc/Makefile.in
index 8aac673c2..b0bc31de3 100644
--- a/atomic/solaris_sparc/Makefile.in
+++ b/atomic/solaris_sparc/Makefile.in
@@ -1,19 +1,19 @@
-TARGETS = apr_atomic_sparc.lo
+TARGETS = @apr_atomic_sparc_compile@
ASFLAGS += @ASFLAGS@
ASCPPFLAGS = @ASCPPFLAGS@
AS = @AS@
ASCPP = @ASCPP@
+# bring in rules.mk for standard functionality
+@INCLUDE_RULES@
+
apr_atomic_sparc.lo: apr_atomic_sparc.s
$(ASCPP) $(ASCPPFLAGS) $*.s > $*.S
$(AS) $(ASFLAGS) -o $@ $*.S
-# bring in rules.mk for standard functionality
-@INCLUDE_RULES@
-
DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@
INCDIR=../../include
INCLUDES=-I$(INCDIR) -I$(DEFOSDIR)
diff --git a/atomic/solaris_sparc/apr_atomic_sparc_no_support.c b/atomic/solaris_sparc/apr_atomic_sparc_no_support.c
new file mode 100644
index 000000000..97b95b139
--- /dev/null
+++ b/atomic/solaris_sparc/apr_atomic_sparc_no_support.c
@@ -0,0 +1,5 @@
+#include "apr.h"
+#if APR_FORCE_ATOMIC_GENERIC
+#include "../unix/apr_atomic.c"
+#else
+#endif