diff options
| author | Scott Francis <scott@kurokoproject.com> | 2017-07-09 17:01:09 -0700 |
|---|---|---|
| committer | Scott Francis <scott@kurokoproject.com> | 2017-07-09 17:01:09 -0700 |
| commit | 9615754de500d96213e295cb80e41cb24e4a75ac (patch) | |
| tree | ccc95e8df88c633508a9fd542b591fd84e263868 /OpenBSD/386/include/emu.h | |
| parent | 8823998c509302a526d8711095f664dd06997234 (diff) | |
Use pthreads instead of rthreads on OpenBSD and add back FPU support
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()) |
