From 9615754de500d96213e295cb80e41cb24e4a75ac Mon Sep 17 00:00:00 2001 From: Scott Francis Date: Sun, 9 Jul 2017 17:01:09 -0700 Subject: Use pthreads instead of rthreads on OpenBSD and add back FPU support --- OpenBSD/386/include/emu.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'OpenBSD/386/include/emu.h') 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()) -- cgit v1.2.3