/** | |
* This file has no copyright assigned and is placed in the Public Domain. | |
* This file is part of the w64 mingw-runtime package. | |
* No warranty is given; refer to the file DISCLAIMER within this package. | |
*/ | |
.file "mingw_getsp.S" | |
.text | |
.align 4 | |
.globl _mingw_getsp | |
.def _mingw_getsp; .scl 2; .type 32; .endef | |
_mingw_getsp: | |
#ifdef _WIN64 | |
leaq 8(%rsp),%rax | |
#else | |
lea 4(%esp),%eax | |
#endif | |
ret | |
.globl _longjmp | |
.def _longjmp; .scl 2; .type 32; .endef | |
_longjmp: | |
#ifdef _WIN64 | |
xorl %eax,%eax | |
movl %eax, (%rcx) | |
leaq _fctMsvcrtLongJmp(%rip), %rax | |
jmpq *(%rax) | |
#else | |
jmp *_fctMsvcrtLongJmp | |
#endif |