summaryrefslogtreecommitdiff
path: root/Linux/spim/include/emu.h
diff options
context:
space:
mode:
Diffstat (limited to 'Linux/spim/include/emu.h')
-rw-r--r--Linux/spim/include/emu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Linux/spim/include/emu.h b/Linux/spim/include/emu.h
index 9ca46903..e367d069 100644
--- a/Linux/spim/include/emu.h
+++ b/Linux/spim/include/emu.h
@@ -20,13 +20,17 @@ struct FPU
*/
#define KSTACK (16 * 1024)
+#ifndef USE_PTHREADS
static __inline Proc *getup(void) {
Proc *p;
__asm__( "move %0, $29\n\t"
: "=r" (p)
);
return *(Proc **)((unsigned long)p & ~(KSTACK - 1));
-};
+}
+#else
+extern Proc* getup(void);
+#endif
#define up (getup())