xref: /inferno-os/NetBSD/arm/include/emu.h (revision 98799e61445323e9022b62346ea988fb465452be)
1 /*
2  * system- and machine-specific declarations for emu:
3  * floating-point save and restore, signal handling primitive, and
4  * implementation of the current-process variable `up'.
5  */
6 
7 /*
8  * This structure must agree with FPsave and FPrestore asm routines
9  */
10 typedef struct FPU FPU;
11 struct FPU
12 {
13 	uchar	env[28];
14 };
15 
16 #define KSTACK (32 * 1024)
17 
18 extern	Proc*	getup(void);
19 #define	up	(getup())
20 
21 typedef sigjmp_buf osjmpbuf;
22 #define	ossetjmp(buf)	sigsetjmp(buf, 1)
23