Skip to content

Commit 657ac77

Browse files
committed
Implement sigsetjmp
1 parent 2395ee8 commit 657ac77

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

winsup/cygwin/scripts/gendef

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,15 @@ EOF
622622
.seh_proc sigsetjmp
623623
sigsetjmp:
624624
// prologue
625+
stp fp, lr, [sp, #-0x10]! // save FP and LR registers
626+
mov fp, sp // set FP to current SP
627+
sub sp, sp, #0x20 // allocate 32 bytes on stack
625628
.seh_endprologue
626629
627-
mov x0, 0
630+
bl setjmp
631+
632+
// epilogue
633+
ldp fp, lr, [sp], #0x10 // restore saved FP and LR registers
628634
ret
629635
.seh_endproc
630636

0 commit comments

Comments
 (0)