xref: /inferno-os/Plan9/386/include/emu.h (revision 90ccc69f5be0b7e26c3607dac07340fe3e271509)
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 extern	Proc**	Xup;
8 #define	up	(*Xup)
9 
10 typedef	struct	FPU	FPU;
11 
12 /*
13  * This structure must agree with FPsave and FPrestore asm routines
14  */
15 struct FPU
16 {
17 	uchar	env[28];
18 };
19 
20 typedef jmp_buf osjmpbuf;
21 #define	ossetjmp(buf)	setjmp(buf)
22 
23