xref: /inferno-os/Plan9/mips/include/emu.h (revision e57c7e16a3789cd4de1a3c2560d49b1ee39cd10a)
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 /*
14  * This structure must agree with FPsave and FPrestore asm routines
15  */
16 struct FPU
17 {
18 	uchar	env[28];
19 };
20 
21 typedef jmp_buf osjmpbuf;
22 #define	ossetjmp(buf)	setjmp(buf)
23 
24