summaryrefslogtreecommitdiff
path: root/Solaris/sparc/include/emu.h
diff options
context:
space:
mode:
Diffstat (limited to 'Solaris/sparc/include/emu.h')
-rw-r--r--Solaris/sparc/include/emu.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Solaris/sparc/include/emu.h b/Solaris/sparc/include/emu.h
new file mode 100644
index 00000000..9b5b1924
--- /dev/null
+++ b/Solaris/sparc/include/emu.h
@@ -0,0 +1,21 @@
+/*
+ * system- and machine-specific declarations for emu:
+ * floating-point save and restore, signal handling primitive, and
+ * implementation of the current-process variable `up'.
+ */
+
+extern Proc* getup(void);
+#define up (getup())
+
+/*
+ * This structure must agree with FPsave and FPrestore asm routines
+ */
+typedef struct FPU FPU;
+struct FPU
+{
+ ulong fsr;
+};
+
+typedef sigjmp_buf osjmpbuf;
+#define ossetjmp(buf) sigsetjmp(buf, 1)
+