summaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/sysdeps/sparc/pspinlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/linuxthreads/sysdeps/sparc/pspinlock.c')
-rw-r--r--libpthread/linuxthreads/sysdeps/sparc/pspinlock.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libpthread/linuxthreads/sysdeps/sparc/pspinlock.c b/libpthread/linuxthreads/sysdeps/sparc/pspinlock.c
new file mode 100644
index 000000000..72a9af5b1
--- /dev/null
+++ b/libpthread/linuxthreads/sysdeps/sparc/pspinlock.c
@@ -0,0 +1,14 @@
+#include <features.h>
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 32
+
+# if defined(__CONFIG_SPARC_V9B__)
+# include "sparc32/sparcv9b/pspinlock.c"
+# else
+# include "sparc32/pspinlock.c"
+# endif
+
+#else
+# include "sparc64/pspinlock.c"
+#endif