Skip to content

Commit c35ef1c

Browse files
Blackhexgithub-actions
authored andcommitted
Increase jump buffer length to 24 to fit all non-volatile registers (#26)
1 parent 25f6776 commit c35ef1c

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

newlib/libc/include/machine/setjmp.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ _BEGIN_STD_C
2222
#endif
2323

2424
#if defined(__aarch64__)
25-
#define _JBLEN 22
25+
# if defined(__CYGWIN__)
26+
/*
27+
* Windows Arm64 ABI requires saving x19-x28, FP, LR, SP, FPCR, FPSR, d8-d15
28+
* and jump address to jmp_buf.
29+
*/
30+
# define _JBLEN 24
31+
# else
32+
# define _JBLEN 22
33+
# endif
2634
#define _JBTYPE long long
2735
#endif
2836

0 commit comments

Comments
 (0)