diff options
| author | forsyth <forsyth@vitanuova.com> | 2011-12-31 10:27:57 +0000 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2011-12-31 10:27:57 +0000 |
| commit | 70847ce7c3d2ee9800014eb328f362b8e335ac76 (patch) | |
| tree | 75d2e5ac8db02c9384eb82f3c7415e56bb7f81d7 /Linux/spim | |
| parent | efbaac87ed5df1764747ea89043475db86c52e19 (diff) | |
20111231-1027
Diffstat (limited to 'Linux/spim')
| -rw-r--r-- | Linux/spim/include/emu.h | 6 |
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()) |
