Reactos
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 38 lines 860 B view raw
1/* 2 * PROJECT: ReactOS vcruntime library 3 * LICENSE: MIT (https://spdx.org/licenses/MIT) 4 * PURPOSE: Implementation of _seh_longjmp_unwind sor x86 5 * COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org> 6 */ 7 8#include <asm.inc> 9#include <ks386.inc> 10 11EXTERN __local_unwind2:PROC 12 13.code 14 15// 16// void __stdcall _seh_longjmp_unwind(_JUMP_BUFFER* _Buf); 17// 18PUBLIC __seh_longjmp_unwind@4 19__seh_longjmp_unwind@4: 20 21 // Save ebp 22 push ebp 23 24 // Load the jump buffer address into eax 25 mov eax, [esp + 8] 26 27 // Call _local_unwind2 to run the termination handlers 28 push dword ptr [eax + JbTryLevel] // _Buf->TryLevel 29 push dword ptr [eax + JbRegistration] // _Buf->Registration 30 mov ebp, [eax + JbEbp] // _Buf->Ebp 31 call __local_unwind2 32 33 // Clean up the stack and restore ebp 34 add esp, 8 35 pop ebp 36 ret 4 37 38END