summaryrefslogtreecommitdiff
path: root/NetBSD/386/include
diff options
context:
space:
mode:
Diffstat (limited to 'NetBSD/386/include')
-rw-r--r--NetBSD/386/include/emu.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/NetBSD/386/include/emu.h b/NetBSD/386/include/emu.h
index 5e03489b..07e3fad7 100644
--- a/NetBSD/386/include/emu.h
+++ b/NetBSD/386/include/emu.h
@@ -15,16 +15,8 @@ struct FPU
#define KSTACK (32 * 1024)
-static __inline Proc *getup(void) {
- Proc *p;
- __asm__( "movl %%esp, %%eax\n\t"
- : "=a" (p)
- );
- return *(Proc **)((unsigned long)p & ~(KSTACK - 1));
-};
-
+extern Proc* getup(void);
#define up (getup())
typedef sigjmp_buf osjmpbuf;
#define ossetjmp(buf) sigsetjmp(buf, 1)
-