Skip to content

Commit 02a4028

Browse files
committed
WIP: Implement sigsetjmp
1 parent 9e5acad commit 02a4028

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

winsup/cygwin/scripts/gendef

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,8 +624,16 @@ EOF
624624
.globl sigsetjmp
625625
.seh_proc sigsetjmp
626626
sigsetjmp:
627+
// prologue
628+
stp fp, lr, [sp, #-0x10]! // save FP and LR registers
629+
mov fp, sp // set FP to current SP
630+
sub sp, sp, #0x20 // allocate 32 bytes on stack
627631
.seh_endprologue
628-
mov x0, 0
632+
633+
bl setjmp
634+
635+
// epilogue
636+
ldp fp, lr, [sp], #0x10 // restore saved FP and LR registers
629637
ret
630638
.seh_endproc
631639

0 commit comments

Comments
 (0)