static smx_context_t
smx_ctx_sysv_factory_create_context(xbt_main_func_t code, int argc, char** argv,
static smx_context_t
smx_ctx_sysv_factory_create_context(xbt_main_func_t code, int argc, char** argv,
static smx_context_t
smx_ctx_sysv_factory_create_context(xbt_main_func_t code, int argc, char** argv,
static smx_context_t
smx_ctx_sysv_factory_create_context(xbt_main_func_t code, int argc, char** argv,
/* If the user provided a function for the process then use it
otherwise is the context for maestro */
if(code){
context->code = code;
xbt_assert2(getcontext(&(context->uc)) == 0,
/* If the user provided a function for the process then use it
otherwise is the context for maestro */
if(code){
context->code = code;
xbt_assert2(getcontext(&(context->uc)) == 0,
- VALGRIND_STACK_REGISTER(context->uc.uc_stack.ss_sp,
- ((char *) context->uc.uc_stack.ss_sp) +
- context->uc.uc_stack.ss_size);
+ VALGRIND_STACK_REGISTER(context->uc.uc_stack.ss_sp,
+ ((char *) context->uc.uc_stack.ss_sp) +
+ context->uc.uc_stack.ss_size);
static void smx_ctx_sysv_stop(smx_context_t pcontext)
{
smx_ctx_sysv_t context = (smx_ctx_sysv_t)pcontext;
static void smx_ctx_sysv_stop(smx_context_t pcontext)
{
smx_ctx_sysv_t context = (smx_ctx_sysv_t)pcontext;
((smx_ctx_sysv_t) new_context)->prev = (smx_ctx_sysv_t)old_context;
rv = swapcontext(&((smx_ctx_sysv_t)old_context)->uc,
((smx_ctx_sysv_t) new_context)->prev = (smx_ctx_sysv_t)old_context;
rv = swapcontext(&((smx_ctx_sysv_t)old_context)->uc,