Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/machine/i386/include/setjmp.h')
-rw-r--r--newlib/libc/sys/linux/machine/i386/include/setjmp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/machine/i386/include/setjmp.h b/newlib/libc/sys/linux/machine/i386/include/setjmp.h
new file mode 100644
index 000000000..f080c3d9f
--- /dev/null
+++ b/newlib/libc/sys/linux/machine/i386/include/setjmp.h
@@ -0,0 +1,6 @@
+#define _JBLEN 9
+typedef long __jmp_buf[_JBLEN];
+
+#define SP_INDEX 7
+#define _JMPBUF_UNWINDS(buf, address) \
+ ((void *)(address) < (void *)(buf)[SP_INDEX])