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