xref: /inferno-os/Solaris/sparc/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*	getup(void);
8 #define	up	(getup())
9 
10 /*
11  * This structure must agree with FPsave and FPrestore asm routines
12  */
13 typedef	struct	FPU	FPU;
14 struct FPU
15 {
16 	ulong	fsr;
17 };
18 
19 typedef sigjmp_buf osjmpbuf;
20 #define	ossetjmp(buf)	sigsetjmp(buf, 1)
21 
22