summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/machine/setjmp.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/machine/setjmp.h')
-rw-r--r--newlib/libc/include/machine/setjmp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/include/machine/setjmp.h b/newlib/libc/include/machine/setjmp.h
index 78fbdd78b..fee409cd7 100644
--- a/newlib/libc/include/machine/setjmp.h
+++ b/newlib/libc/include/machine/setjmp.h
@@ -55,6 +55,13 @@ _BEGIN_STD_C
#define _JBLEN 32
#endif
+#ifdef __nds32__
+/* Only 17 words are currently needed.
+ Preserve one word slot if we need to expand.
+ Check newlib/libc/machine/nds32/setjmp.S for more information. */
+#define _JBLEN 18
+#endif
+
#if defined(__Z8001__) || defined(__Z8002__)
/* 16 regs + pc */
#define _JBLEN 20