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/arm/atomic Add a hidden version for lib...
details: https://anonhg.NetBSD.org/src/rev/2faa1e463cc9
branches: trunk
changeset: 789354:2faa1e463cc9
user: matt <matt%NetBSD.org@localhost>
date: Fri Aug 16 01:47:41 2013 +0000
description:
Add a hidden version for libpthread.
diffstat:
common/lib/libc/arch/arm/atomic/atomic_simplelock.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 395c25322f46 -r 2faa1e463cc9 common/lib/libc/arch/arm/atomic/atomic_simplelock.c
--- a/common/lib/libc/arch/arm/atomic/atomic_simplelock.c Fri Aug 16 00:03:01 2013 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_simplelock.c Fri Aug 16 01:47:41 2013 +0000
@@ -28,9 +28,11 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: atomic_simplelock.c,v 1.1 2013/08/15 22:42:50 matt Exp $");
+__RCSID("$NetBSD: atomic_simplelock.c,v 1.2 2013/08/16 01:47:41 matt Exp $");
#include <sys/types.h>
+
+#if !defined(_ARM_ARCH_T2)
/*
* We need to use the inlines so redefine out of the way.
*/
@@ -43,12 +45,16 @@
#undef __cpu_simple_lock
#undef __cpu_simple_lock_try
-#if !defined(_ARM_ARCH_T2)
/*
* Since we overrode lock.h we have to provide these ourselves.
*/
+#ifdef __LIBPTHREAD_SOURCE__
__dso_hidden void __cpu_simple_lock(__cpu_simple_lock_t *);
__dso_hidden int __cpu_simple_lock_try(__cpu_simple_lock_t *);
+#else
+void __cpu_simple_lock(__cpu_simple_lock_t *);
+int __cpu_simple_lock_try(__cpu_simple_lock_t *);
+#endif
void
__cpu_simple_lock(__cpu_simple_lock_t *alp)
Home |
Main Index |
Thread Index |
Old Index