git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3335
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
- if (arg != (void *)2147483648)
+ if (arg != (void *)12345)
exit(1);
if (swapcontext(&uc_child, &uc_main) != 0)
exit(2);
exit(1);
if (swapcontext(&uc_child, &uc_main) != 0)
exit(2);
uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
uc_child.uc_stack.ss_size = 32*1024;
uc_child.uc_stack.ss_flags = 0;
uc_child.uc_stack.ss_sp = (char *)stack+(32*1024);
uc_child.uc_stack.ss_size = 32*1024;
uc_child.uc_stack.ss_flags = 0;
- makecontext(&uc_child, child, 2, (void *)2147483648);
+ makecontext(&uc_child, child, 2, (void *)12345);
/* switch into the user context */
if (swapcontext(&uc_main, &uc_child) != 0)
/* switch into the user context */
if (swapcontext(&uc_main, &uc_child) != 0)