diff options
Diffstat (limited to 'Linux/power')
| -rw-r--r-- | Linux/power/include/emu.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Linux/power/include/emu.h b/Linux/power/include/emu.h index b169fd7e..f60f64fd 100644 --- a/Linux/power/include/emu.h +++ b/Linux/power/include/emu.h @@ -20,11 +20,15 @@ struct FPU */ #define KSTACK (16 * 1024) +#ifndef USE_PTHREADS static __inline Proc *getup(void) { Proc *p; __asm__( "mr %0, 1" : "=r" (p)); return *(Proc **)((unsigned long)p & ~(KSTACK - 1)); -}; +} +#else +extern Proc* getup(void); +#endif #define up (getup()) |
