reactos/sdk/lib/crt/except/amd64/seh.s
Timo Kreuzer 9efafd640f [CRT] Import wine exception handling code
The code is mostly unchanged. This includes the following changes:
* Move all wine code to crt/wine to keep it separated from our own code
* Add a minimal winternl.h
* Remove the asm macros from wine/config.h
* Include wine/asm.h where required
* Fix the names of the exported functions (GCC uses thiscall now and no wrappers are used anymore)
2020-02-09 15:56:30 +01:00

60 lines
1.1 KiB
ArmAsm

/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS CRT
* FILE: lib/sdk/crt/except/amd64/seh.s
* PURPOSE: SEH Support for the CRT
* PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
*/
/* INCLUDES ******************************************************************/
#include <asm.inc>
#include <ksamd64.inc>
#define DISPOSITION_DISMISS 0
#define DISPOSITION_CONTINUE_SEARCH 1
#define DISPOSITION_COLLIDED_UNWIND 3
/* GLOBALS *******************************************************************/
PUBLIC _global_unwind2
PUBLIC _local_unwind2
PUBLIC _abnormal_termination
PUBLIC _except_handler2
PUBLIC _except_handler3
/* CODE **********************************************************************/
.code64
FUNC _unwind_handler
.endprolog
ret
ENDFUNC
FUNC _global_unwind2
.endprolog
ret
ENDFUNC
FUNC _abnormal_termination
.endprolog
ret
ENDFUNC
FUNC _local_unwind2
.endprolog
ret
ENDFUNC
FUNC _except_handler2
.endprolog
ret
ENDFUNC
FUNC _except_handler3
.endprolog
ret
ENDFUNC
END