forked from xt-sys/exectos
Add __C_specific_handler() and _except_handler3() stubs allowing to use '__try {} __except() {}' (SEH) constructions
This commit is contained in:
parent
57dee5c535
commit
2f1c5a22a5
@ -35,7 +35,8 @@ list(APPEND XTOSKRNL_SOURCE
|
||||
${XTOSKRNL_SOURCE_DIR}/rtl/plist.c
|
||||
${XTOSKRNL_SOURCE_DIR}/rtl/string.c
|
||||
${XTOSKRNL_SOURCE_DIR}/rtl/widestr.c
|
||||
${XTOSKRNL_SOURCE_DIR}/rtl/${ARCH}/dispatch.c)
|
||||
${XTOSKRNL_SOURCE_DIR}/rtl/${ARCH}/dispatch.c
|
||||
${XTOSKRNL_SOURCE_DIR}/rtl/${ARCH}/exsup.c)
|
||||
|
||||
# Set module definition SPEC file
|
||||
set_specfile(xtoskrnl.spec)
|
||||
|
36
xtoskrnl/rtl/amd64/exsup.c
Normal file
36
xtoskrnl/rtl/amd64/exsup.c
Normal file
@ -0,0 +1,36 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/rtl/amd64/exsup.c
|
||||
* DESCRIPTION: Exception handling for AMD64 architecture
|
||||
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||
*/
|
||||
|
||||
#include <xtos.h>
|
||||
|
||||
|
||||
XTAPI
|
||||
EXCEPTION_DISPOSITION
|
||||
__C_specific_handler(IN PEXCEPTION_RECORD ExceptionRecord,
|
||||
IN PVOID EstablisherFrame,
|
||||
IN OUT PCONTEXT ContextRecord,
|
||||
IN OUT PVOID DispatcherContext)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
/* Continue execution */
|
||||
return ExceptionContinueExecution;
|
||||
}
|
||||
|
||||
XTCDECL
|
||||
INT
|
||||
_except_handler3(PEXCEPTION_RECORD ExceptionRecord,
|
||||
PVOID Registration,
|
||||
PCONTEXT Context,
|
||||
PVOID Dispatcher)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
/* Handler not found */
|
||||
return 0;
|
||||
}
|
36
xtoskrnl/rtl/i686/exsup.c
Normal file
36
xtoskrnl/rtl/i686/exsup.c
Normal file
@ -0,0 +1,36 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtoskrnl/rtl/i686/exsup.c
|
||||
* DESCRIPTION: Exception handling for i686 architecture
|
||||
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||
*/
|
||||
|
||||
#include <xtos.h>
|
||||
|
||||
|
||||
XTCDECL
|
||||
EXCEPTION_DISPOSITION
|
||||
__C_specific_handler(IN PEXCEPTION_RECORD ExceptionRecord,
|
||||
IN PVOID EstablisherFrame,
|
||||
IN OUT PCONTEXT ContextRecord,
|
||||
IN OUT PVOID DispatcherContext)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
/* Continue execution */
|
||||
return ExceptionContinueExecution;
|
||||
}
|
||||
|
||||
XTCDECL
|
||||
INT
|
||||
_except_handler3(PEXCEPTION_RECORD ExceptionRecord,
|
||||
PVOID Registration,
|
||||
PCONTEXT Context,
|
||||
PVOID Dispatcher)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
|
||||
/* Handler not found */
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user