mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
msvcrt: Add SEH annotations for sse2_memcpy().
This allows unwinding from a crash inside the function.
This commit is contained in:
parent
3f47b478b4
commit
5714042137
1 changed files with 3 additions and 0 deletions
|
@ -2817,8 +2817,11 @@ int __cdecl memcmp(const void *ptr1, const void *ptr2, size_t n)
|
|||
|
||||
#define MEMMOVE_INIT \
|
||||
"pushq " SRC_REG "\n\t" \
|
||||
__ASM_SEH(".seh_pushreg " SRC_REG "\n\t") \
|
||||
__ASM_CFI(".cfi_adjust_cfa_offset 8\n\t") \
|
||||
"pushq " DEST_REG "\n\t" \
|
||||
__ASM_SEH(".seh_pushreg " DEST_REG "\n\t") \
|
||||
__ASM_SEH(".seh_endprologue\n\t") \
|
||||
__ASM_CFI(".cfi_adjust_cfa_offset 8\n\t") \
|
||||
"movq %rcx, " DEST_REG "\n\t" \
|
||||
"movq %rdx, " SRC_REG "\n\t"
|
||||
|
|
Loading…
Reference in a new issue