summaryrefslogtreecommitdiffstats
path: root/src/arch/e1/include/setjmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/e1/include/setjmp.h')
-rw-r--r--src/arch/e1/include/setjmp.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/arch/e1/include/setjmp.h b/src/arch/e1/include/setjmp.h
new file mode 100644
index 000000000..ef401b625
--- /dev/null
+++ b/src/arch/e1/include/setjmp.h
@@ -0,0 +1,23 @@
+#ifndef _SETJMP_H
+#define _SETJMP_H
+
+
+typedef struct {
+ unsigned long G3;
+ unsigned long G4;
+ unsigned long SavedSP;
+ unsigned long SavedPC;
+ unsigned long SavedSR;
+ unsigned long ReturnValue;
+} __jmp_buf[1];
+
+typedef struct __jmp_buf_tag /* C++ doesn't like tagless structs. */
+ {
+ __jmp_buf __jmpbuf; /* Calling environment. */
+ int __mask_was_saved; /* Saved the signal mask? */
+ } jmp_buf[1];
+
+void longjmp(jmp_buf state, int value );
+int setjmp( jmp_buf state);
+
+#endif