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 typedef struct FPU FPU; 16 struct FPU 17 { 18 double fpreg[32]; 19 union { 20 double fpscrd; 21 struct { 22 ulong pad; 23 ulong fpscr; 24 }; 25 }; 26 }; 27 28 typedef jmp_buf osjmpbuf; 29 #define ossetjmp(buf) setjmp(buf) 30 31