mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:21:51 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
32
sdk/lib/crt/except/amd64/chkstk_asm.s
Normal file
32
sdk/lib/crt/except/amd64/chkstk_asm.s
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* PURPOSE: Implementation of _chkstk and _alloca_probe
|
||||
* FILE: lib/sdk/crt/except/amd64/chkstk_asm.s
|
||||
* PROGRAMMER: Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||
*/
|
||||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <asm.inc>
|
||||
|
||||
/* CODE **********************************************************************/
|
||||
.code64
|
||||
|
||||
MsgUnimplemented:
|
||||
.ascii "Unimplemented", CR, LF, NUL
|
||||
|
||||
FUNC __chkstk
|
||||
.endprolog
|
||||
UNIMPLEMENTED chkstk
|
||||
ret
|
||||
ENDFUNC
|
||||
|
||||
FUNC __alloca_probe
|
||||
.endprolog
|
||||
UNIMPLEMENTED alloca_probe
|
||||
ret
|
||||
ENDFUNC
|
||||
|
||||
END
|
||||
/* EOF */
|
51
sdk/lib/crt/except/amd64/chkstk_ms.s
Normal file
51
sdk/lib/crt/except/amd64/chkstk_ms.s
Normal file
|
@ -0,0 +1,51 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* PURPOSE: Implementation of _chkstk and _alloca_probe
|
||||
* PROGRAMMERS Richard Henderson <rth@redhat.com>
|
||||
* Kai Tietz <kai.tietz@onevision.com>
|
||||
* Timo Kreuzer (timo.kreuzer@reactos.org)
|
||||
*/
|
||||
|
||||
/* INCLUDES ******************************************************************/
|
||||
|
||||
#include <asm.inc>
|
||||
#define PAGE_SIZE 4096
|
||||
|
||||
/* CODE **********************************************************************/
|
||||
.code64
|
||||
|
||||
PUBLIC ___chkstk_ms
|
||||
|
||||
//cfi_startproc()
|
||||
___chkstk_ms:
|
||||
push rcx /* save temps */
|
||||
//cfi_push(%rcx)
|
||||
push rax
|
||||
//cfi_push(%rax)
|
||||
|
||||
cmp rax, PAGE_SIZE /* > 4k ?*/
|
||||
lea rcx, [rsp + 24] /* point past return addr */
|
||||
jb l_LessThanAPage
|
||||
|
||||
l_MoreThanAPage:
|
||||
sub rcx, PAGE_SIZE /* yes, move pointer down 4k */
|
||||
or byte ptr [rcx], 0 /* probe there */
|
||||
sub rax, PAGE_SIZE /* decrement count */
|
||||
|
||||
cmp rax, PAGE_SIZE
|
||||
ja l_MoreThanAPage /* and do it again */
|
||||
|
||||
l_LessThanAPage:
|
||||
sub rcx, rax
|
||||
or byte ptr [rcx], 0 /* less than 4k, just peek here */
|
||||
|
||||
pop rax
|
||||
//cfi_pop(%rax)
|
||||
pop rcx
|
||||
//cfi_pop(%rcx)
|
||||
ret
|
||||
//cfi_endproc()
|
||||
|
||||
END
|
||||
/* EOF */
|
85
sdk/lib/crt/except/amd64/cpp.s
Normal file
85
sdk/lib/crt/except/amd64/cpp.s
Normal file
|
@ -0,0 +1,85 @@
|
|||
|
||||
|
||||
#include <asm.inc>
|
||||
|
||||
.code64
|
||||
.align 4
|
||||
|
||||
MACRO(START_VTABLE, shortname, cxxname)
|
||||
EXTERN shortname&_rtti:PROC
|
||||
EXTERN MSVCRT_&shortname&_vector_dtor:PROC
|
||||
.double shortname&_rtti
|
||||
PUBLIC MSVCRT_&shortname&_vtable
|
||||
MSVCRT_&shortname&_vtable:
|
||||
PUBLIC &cxxname
|
||||
&cxxname:
|
||||
.double MSVCRT_&shortname&_vector_dtor
|
||||
ENDM
|
||||
|
||||
MACRO(DEFINE_EXCEPTION_VTABLE, shortname, cxxname)
|
||||
START_VTABLE shortname, cxxname
|
||||
EXTERN MSVCRT_what_exception:ABS
|
||||
.double MSVCRT_what_exception
|
||||
ENDM
|
||||
|
||||
START_VTABLE type_info, __dummyname_type_info
|
||||
DEFINE_EXCEPTION_VTABLE exception, ??_7exception@@6B@
|
||||
DEFINE_EXCEPTION_VTABLE bad_typeid, ??_7bad_typeid@@6B@
|
||||
DEFINE_EXCEPTION_VTABLE bad_cast, ??_7bad_cast@@6B@
|
||||
DEFINE_EXCEPTION_VTABLE __non_rtti_object, ??_7__non_rtti_object@@6B@
|
||||
|
||||
|
||||
MACRO(DEFINE_ALIAS, alias, orig)
|
||||
EXTERN &orig:ABS
|
||||
ALIAS <&alias> = <&orig>
|
||||
ENDM
|
||||
|
||||
DEFINE_ALIAS ??3@YAXPEAX@Z, MSVCRT_operator_delete
|
||||
DEFINE_ALIAS ??_U@YAPEAX_K@Z, MSVCRT_operator_new
|
||||
DEFINE_ALIAS ??_V@YAXPEAX@Z, MSVCRT_operator_delete
|
||||
DEFINE_ALIAS ??2@YAPEAX_K@Z, MSVCRT_operator_new
|
||||
DEFINE_ALIAS ?_query_new_handler@@YAP6AHI@ZXZ, MSVCRT__query_new_handler
|
||||
DEFINE_ALIAS ?_set_new_handler@@YAP6AHI@ZP6AHI@Z@Z, MSVCRT__set_new_handler
|
||||
DEFINE_ALIAS ?set_new_handler@@YAP6AXXZP6AXXZ@Z, MSVCRT_set_new_handler
|
||||
DEFINE_ALIAS ?_query_new_mode@@YAHXZ, MSVCRT__query_new_mode
|
||||
DEFINE_ALIAS ?_set_new_mode@@YAHH@Z, MSVCRT__set_new_mode
|
||||
DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z, MSVCRT__set_se_translator
|
||||
DEFINE_ALIAS ?set_terminate@@YAP6AXXZP6AXXZ@Z, MSVCRT_set_terminate
|
||||
DEFINE_ALIAS ?set_unexpected@@YAP6AXXZP6AXXZ@Z, MSVCRT_set_unexpected
|
||||
DEFINE_ALIAS ?terminate@@YAXXZ, MSVCRT_terminate
|
||||
DEFINE_ALIAS ?unexpected@@YAXXZ, MSVCRT_unexpected
|
||||
DEFINE_ALIAS ?what@exception@@UEBAPEBDXZ, MSVCRT_what_exception
|
||||
DEFINE_ALIAS ??0exception@@QEAA@AEBQEBDH@Z, MSVCRT_exception_ctor_noalloc
|
||||
DEFINE_ALIAS ??0exception@@QEAA@AEBV0@@Z, MSVCRT_exception_copy_ctor
|
||||
DEFINE_ALIAS ??0exception@@QEAA@XZ, MSVCRT_exception_default_ctor
|
||||
DEFINE_ALIAS ??1exception@@UEAA@XZ, MSVCRT_exception_dtor
|
||||
DEFINE_ALIAS ??4exception@@QEAAAEAV0@AEBV0@@Z, MSVCRT_exception_opequals
|
||||
DEFINE_ALIAS ??1type_info@@UEAA@XZ, MSVCRT_type_info_dtor
|
||||
DEFINE_ALIAS ??0__non_rtti_object@@QEAA@AEBV0@@Z, MSVCRT___non_rtti_object_copy_ctor
|
||||
DEFINE_ALIAS ??0__non_rtti_object@@QEAA@PEBD@Z, MSVCRT___non_rtti_object_ctor
|
||||
DEFINE_ALIAS ??0bad_cast@@AEAA@PEBQEBD@Z, MSVCRT_bad_cast_ctor
|
||||
DEFINE_ALIAS ??0bad_cast@@QEAA@AEBQEBD@Z, MSVCRT_bad_cast_ctor
|
||||
DEFINE_ALIAS ??0bad_cast@@QEAA@AEBV0@@Z, MSVCRT_bad_cast_copy_ctor
|
||||
DEFINE_ALIAS ??0bad_cast@@QEAA@PEBD@Z, MSVCRT_bad_cast_ctor_charptr
|
||||
DEFINE_ALIAS ??0bad_typeid@@QEAA@AEBV0@@Z, MSVCRT_bad_typeid_copy_ctor
|
||||
DEFINE_ALIAS ??0bad_typeid@@QEAA@PEBD@Z, MSVCRT_bad_typeid_ctor
|
||||
DEFINE_ALIAS ??0exception@@QEAA@AEBQEBD@Z, MSVCRT_exception_ctor
|
||||
DEFINE_ALIAS ??1__non_rtti_object@@UEAA@XZ, MSVCRT___non_rtti_object_dtor
|
||||
DEFINE_ALIAS ??1bad_cast@@UEAA@XZ, MSVCRT_bad_cast_dtor
|
||||
DEFINE_ALIAS ??1bad_typeid@@UEAA@XZ, MSVCRT_bad_typeid_dtor
|
||||
DEFINE_ALIAS ??4bad_cast@@QEAAAEAV0@AEBV0@@Z, MSVCRT_bad_cast_opequals
|
||||
DEFINE_ALIAS ??4bad_typeid@@QEAAAEAV0@AEBV0@@Z, MSVCRT_bad_typeid_opequals
|
||||
DEFINE_ALIAS ??8type_info@@QEBAHAEBV0@@Z, MSVCRT_type_info_opequals_equals
|
||||
DEFINE_ALIAS ??9type_info@@QEBAHAEBV0@@Z, MSVCRT_type_info_opnot_equals
|
||||
DEFINE_ALIAS ??_Fbad_cast@@QEAAXXZ, MSVCRT_bad_cast_default_ctor
|
||||
DEFINE_ALIAS ??_Fbad_typeid@@QEAAXXZ, MSVCRT_bad_typeid_default_ctor
|
||||
DEFINE_ALIAS ?_query_new_handler@@YAP6AH_K@ZXZ, MSVCRT__query_new_handler
|
||||
DEFINE_ALIAS ?_set_new_handler@@YAP6AH_K@ZP6AH0@Z@Z, MSVCRT__set_new_handler
|
||||
DEFINE_ALIAS ?_set_se_translator@@YAP6AXIPEAU_EXCEPTION_POINTERS@@@ZP6AXI0@Z@Z, MSVCRT__set_se_translator
|
||||
DEFINE_ALIAS ?before@type_info@@QEBAHAEBV1@@Z, MSVCRT_type_info_before
|
||||
DEFINE_ALIAS ?name@type_info@@QEBAPEBDXZ, MSVCRT_type_info_name
|
||||
DEFINE_ALIAS ?raw_name@type_info@@QEBAPEBDXZ, MSVCRT_type_info_raw_name
|
||||
DEFINE_ALIAS ??4__non_rtti_object@@QEAAAEAV0@AEBV0@@Z, MSVCRT___non_rtti_object_opequals
|
||||
|
||||
END
|
||||
|
30
sdk/lib/crt/except/amd64/ehandler.c
Normal file
30
sdk/lib/crt/except/amd64/ehandler.c
Normal file
|
@ -0,0 +1,30 @@
|
|||
|
||||
#include <precomp.h>
|
||||
|
||||
|
||||
_CRTIMP
|
||||
EXCEPTION_DISPOSITION
|
||||
__cdecl
|
||||
__C_specific_handler(
|
||||
struct _EXCEPTION_RECORD *_ExceptionRecord,
|
||||
void *_EstablisherFrame,
|
||||
struct _CONTEXT *_ContextRecord,
|
||||
struct _DISPATCHER_CONTEXT *_DispatcherContext)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
__debugbreak();
|
||||
return 0;
|
||||
}
|
||||
|
||||
DWORD
|
||||
__CxxFrameHandler(
|
||||
PEXCEPTION_RECORD rec,
|
||||
EXCEPTION_REGISTRATION_RECORD* ExceptionRegistrationFrame,
|
||||
PCONTEXT context,
|
||||
EXCEPTION_REGISTRATION_RECORD** _ExceptionRecord)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
__debugbreak();
|
||||
return 0;
|
||||
}
|
||||
|
65
sdk/lib/crt/except/amd64/seh.s
Normal file
65
sdk/lib/crt/except/amd64/seh.s
Normal file
|
@ -0,0 +1,65 @@
|
|||
/*
|
||||
* 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_unwind
|
||||
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_unwind
|
||||
.endprolog
|
||||
ret
|
||||
ENDFUNC
|
||||
|
||||
FUNC _local_unwind2
|
||||
.endprolog
|
||||
ret
|
||||
ENDFUNC
|
||||
|
||||
FUNC _except_handler2
|
||||
.endprolog
|
||||
ret
|
||||
ENDFUNC
|
||||
|
||||
FUNC _except_handler3
|
||||
.endprolog
|
||||
ret
|
||||
ENDFUNC
|
||||
|
||||
END
|
Loading…
Add table
Add a link
Reference in a new issue