xref: /inferno-os/Plan9/sparc/include/emu.h (revision 7ef44d652ae9e5e1f5b3465d73684e4a54de73c0)
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         ulong   fsr;
18 };
19 
20 typedef jmp_buf osjmpbuf;
21 #define	ossetjmp(buf)	setjmp(buf)
22 
23