diff options
Diffstat (limited to 'firmware/asm/thread.c')
| -rw-r--r-- | firmware/asm/thread.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/firmware/asm/thread.c b/firmware/asm/thread.c index 49e71d7..d6b881b 100644 --- a/firmware/asm/thread.c +++ b/firmware/asm/thread.c @@ -1,4 +1,11 @@ -#if defined(CPU_ARM) + /* First some generic implementations */ +#if defined(HAVE_WIN32_FIBER_THREADS) + #include "thread-win32.c" +#elif defined(HAVE_SIGALTSTACK_THREADS) + #include "thread-unix.c" + + /* Now the CPU-specific implementations */ +#elif defined(CPU_ARM) #include "arm/thread.c" #elif defined(CPU_COLDFIRE) #include "m68k/thread.c" @@ -7,15 +14,6 @@ #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 + /* Nothing? OK, give up */ #error Missing thread impl #endif - -#endif |