ReactOS
0.4.15-dev-4594-g505ac65
|
Go to the source code of this file.
Classes | |
struct | _FRAME_SYSCALL |
Typedefs | |
typedef struct _FRAME_SYSCALL | FRAME_SYSCALL |
Functions | |
void | other_module_cleanup_module (void) |
void | CSyscallHandler (FRAME_SYSCALL *ptr, ULONG ulSysCall, ULONG ebx) |
__asm__ ("\n\t \ NewSyscallHandler:\n\t \ // save used regs\n\t \ pushfl\n\t \ cli\n\t \ cld\n\t \ pushal\n\t \ pushl %ds\n\t \ \n\t \ // push the syscall number\n\t \ pushl %ebx\n\t \ pushl %eax\n\t \ \n\t \ // frame ptr\n\t \ lea 48(%esp),%eax\n\t \ pushl %eax\n\t \ \n\t \ // setup default data selectors\n\t \ movw %ss,%ax\n\t \ movw %ax,%ds\n\t \ \n\t \ call _CSyscallHandler\n\t \ \n\t \ // remove pushed params\n\t \ add $12,%esp\n\t \ \n\t \ // restore used regs\n\t \ popl %ds\n\t \ popal\n\t \ popfl\n\t \ \n\t \ // chain to old handler\n\t \ .byte 0x2e\n\t \ jmp *_OldSyscallHandler") | |
void | InstallSyscallHook (void) |
void | DeInstallSyscallHook (void) |
Variables | |
char | syscallTemp [1024] |
BOOLEAN | bReportProcessEvents = TRUE |
ULONG | OldSyscallHandler =0 |
ULONG | ulFreeModule =0 |
PDEBUG_MODULE | pModJustFreed =NULL |
void(* | old_cleanup_module )(void) =NULL |
typedef struct _FRAME_SYSCALL FRAME_SYSCALL |
__asm__ | ( | "\n\t \NewSyscallHandler:\n\t \ // save used regs\n\t \ pushfl\n\t \ cli\n\t \ cld\n\t \ pushal\n\t \ pushl %ds\n\t \\n\t \ // push the syscall number\n\t \ pushl %ebx\n\t \ pushl %eax\n\t \\n\t \ // frame ptr\n\t \ lea | 48%esp, |
%eax\n\t \ pushl %eax\n\t \\n\t \//setup default data selectors\n\t \ movw % | ss, | ||
%ax\n\t \ movw % | ax, | ||
%ds\n\t \\n\t \ call _CSyscallHandler\n\t \\n\t \//remove pushed params\n\t \ add | $12, | ||
%esp\n\t \\n\t \//restore used regs\n\t \ popl %ds\n\t \ popal\n\t \ popfl\n\t \\n\t \//chain to old handler\n\t \ .byte 0x2e\n\t \ jmp *_OldSyscallHandler" | |||
) |
void CSyscallHandler | ( | FRAME_SYSCALL * | ptr, |
ULONG | ulSysCall, | ||
ULONG | ebx | ||
) |
Definition at line 71 of file syscall.c.
Definition at line 52 of file syscall.c.
Referenced by other_module_cleanup_module().
PDEBUG_MODULE pModJustFreed =NULL |
Definition at line 51 of file syscall.c.
Referenced by other_module_cleanup_module().