core/win32/syscall.c
/***************************************************************************
 * PRE SYSTEM CALL
 *
 * FIXME: should we pass mcontext to these routines to avoid
 * the get_mcontext() call and derefs?
 * => now we're forcing the inline of get_mcontext() so should be fine
 */
PRE SYSTEM CALL
FIXME: should we pass mcontext to these routines to avoid
the get_mcontext() call and derefs.
=> now we're forcing the inline of get_mcontext() so should be fine
PRE SYSTEM CALL FIXME : should we pass mcontext to these routines to avoid the get_mcontext () call and derefs . = > now we ' re forcing the inline of get_mcontext () so should be fine
static reg_t *
pre_system_call_param_base(dr_mcontext_t *mc)
{
#ifdef X64
    reg_t *param_base = (reg_t *) mc->xsp;
#else
    reg_t *param_base = (reg_t *) mc->xdx;
#endif
    param_base += (SYSCALL_PARAM_OFFSET() / sizeof(reg_t));
    return param_base;
}
static reg_t * pre_system_call_param_base ( dr_mcontext_t * mc ) { #ifdef X64 reg_t * param_base = ( reg_t * ) mc -> xsp ; #else reg_t * param_base = ( reg_t * ) mc -> xdx ; #endif param_base += ( SYSCALL_PARAM_OFFSET ( ) / sizeof ( reg_t ) ) ; return param_base ; }
PRE SYSTEM CALL
 FIXME: should we pass mcontext to these routines to avoid
 the get_mcontext() call and derefs?
PRE SYSTEM CALL FIXME : should we pass mcontext to these routines to avoid the get_mcontext () call and derefs?