diff options
Diffstat (limited to 'OpenBSD/386/include/emu.h')
| -rw-r--r-- | OpenBSD/386/include/emu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenBSD/386/include/emu.h b/OpenBSD/386/include/emu.h index 5e03489b..5392e2a4 100644 --- a/OpenBSD/386/include/emu.h +++ b/OpenBSD/386/include/emu.h @@ -15,6 +15,7 @@ struct FPU #define KSTACK (32 * 1024) +#ifndef USE_PTHREADS static __inline Proc *getup(void) { Proc *p; __asm__( "movl %%esp, %%eax\n\t" @@ -22,6 +23,9 @@ static __inline Proc *getup(void) { ); return *(Proc **)((unsigned long)p & ~(KSTACK - 1)); }; +#else +extern Proc* getup(void); +#endif #define up (getup()) |
