ReactOS  0.4.13-dev-249-gcba1a2f
syscall.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void InstallSyscallHook (void)
 
void DeInstallSyscallHook (void)
 
void CReturnFromSyscallHandler (void)
 

Function Documentation

◆ CReturnFromSyscallHandler()

void CReturnFromSyscallHandler ( void  )

◆ DeInstallSyscallHook()

void DeInstallSyscallHook ( void  )

Definition at line 218 of file syscall.c.

219 {
220  ENTER_FUNC();
221 /*ei
222  MaskIrqs();
223  if(OldSyscallHandler)
224  {
225  SetGlobalInt(0x2e,(ULONG)OldSyscallHandler);
226  (ULONG)OldSyscallHandler=0;
227  }
228  UnmaskIrqs();
229 */
230  LEAVE_FUNC();
231 }
#define LEAVE_FUNC()
Definition: debug.h:43
#define ENTER_FUNC()
Definition: debug.h:42

Referenced by CleanUpPICE().

◆ InstallSyscallHook()

void InstallSyscallHook ( void  )

Definition at line 194 of file syscall.c.

195 {
196  ULONG LocalSyscallHandler;
197 
198  ENTER_FUNC();
199 /*ei fix later
200  MaskIrqs();
201  if(!OldSyscallHandler)
202  {
203  __asm__("mov $NewSyscallHandler,%0"
204  :"=r" (LocalSyscallHandler)
205  :
206  :"eax");
207  OldSyscallHandler=SetGlobalInt(0x2e,(ULONG)LocalSyscallHandler);
208 
209  ScanExports("free_module",(PULONG)&ulFreeModule);
210 
211  DPRINT((0,"InstallSyscallHook(): free_module @ %x\n",ulFreeModule));
212  }
213  UnmaskIrqs();
214  */
215  LEAVE_FUNC();
216 }
#define LEAVE_FUNC()
Definition: debug.h:43
unsigned int ULONG
Definition: retypes.h:1
#define ENTER_FUNC()
Definition: debug.h:42

Referenced by InitPICE().