Blame src/seh/nt64/ntapi_tt_seh_frame.s

cd4191
##########################################################
cd4191
##  ntapi: Native API core library                      ##
59d585
##  Copyright (C) 2013--2021  Z. Gilboa                 ##
cd4191
##  Released under GPLv2 and GPLv3; see COPYING.NTAPI.  ##
cd4191
##########################################################
cd4191
cd4191
.section .text
cd4191
cd4191
.global __ntapi_tt_seh_frame
cd4191
e39c77
	.def __ntapi_tt_seh_frame; .scl 2; .type 32; .endef
e39c77
	.def __seh_trap;           .scl 2; .type 32; .endef
cd4191
cd4191
__seh_trap:
cd4191
	nop
cd4191
	jmp __seh_trap
cd4191
cd4191
	.seh_proc __ntapi_tt_seh_frame
cd4191
__ntapi_tt_seh_frame:
cd4191
	.seh_endprologue
cd4191
cd4191
.__init_frame_begin:
cd4191
	.seh_handler __seh_trap, @except
cd4191
	.seh_handlerdata
cd4191
	.long 1
cd4191
	.long .__init_frame_begin,.__init_frame_end,__seh_trap,.__init_frame_end
cd4191
	.text
cd4191
cd4191
	subq $40, %rsp
cd4191
	call *%r9
cd4191
	addq $40, %rsp
cd4191
cd4191
	nop
cd4191
.__init_frame_end:
cd4191
	ret
cd4191
cd4191
	.seh_endproc