Skip to content

Commit f2b51ca

Browse files
committed
WIP: Implement siglongjmp
1 parent 02a4028 commit f2b51ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

winsup/cygwin/scripts/gendef

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,16 @@ setjmp:
690690
.globl siglongjmp
691691
.seh_proc siglongjmp
692692
siglongjmp:
693+
// prologue
694+
stp fp, lr, [sp, #-0x10]! // save FP and LR registers
695+
mov fp, sp // set FP to current SP
696+
sub sp, sp, #32 // allocate 32 bytes on stack
693697
.seh_endprologue
698+
699+
bl longjmp
700+
701+
// epilogue
702+
ldp fp, lr, [sp], #0x10 // restore saved FP and LR registers
694703
ret
695704
.seh_endproc
696705

0 commit comments

Comments
 (0)