summaryrefslogtreecommitdiff
path: root/firmware/asm/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/asm/thread.c')
-rw-r--r--firmware/asm/thread.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/firmware/asm/thread.c b/firmware/asm/thread.c
new file mode 100644
index 0000000000..49e71d73af
--- /dev/null
+++ b/firmware/asm/thread.c
@@ -0,0 +1,21 @@
+#if defined(CPU_ARM)
+ #include "arm/thread.c"
+#elif defined(CPU_COLDFIRE)
+ #include "m68k/thread.c"
+#elif CONFIG_CPU == SH7034
+ #include "sh/thread.c"
+#elif defined(CPU_MIPS)
+ #include "mips/thread.c"
+#else
+
+/* generic thread.c */
+
+#if defined(HAVE_WIN32_FIBER_THREADS)
+ #include "thread-win32.c"
+#elif defined(HAVE_SIGALTSTACK_THREADS)
+ #include "thread-unix.c"
+#else
+ #error Missing thread impl
+#endif
+
+#endif