xref: /inferno-os/MacOSX/power/include/emu.h (revision d3641b487cf5cdc46e9b537d30eb37736e5c7b1a)
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 
14 #include <architecture/ppc/fp_regs.h>
15 
16 typedef union {
17 	double 			__dbl;
18 	ppc_fp_scr_t	__src;
19 } FPU;
20 
21 typedef sigjmp_buf osjmpbuf;
22 #define	ossetjmp(buf)	sigsetjmp(buf, 1)
23