Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert last change: now, we can use contextes even on 64bits archs where passing...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 22 Mar 2007 14:58:45 +0000 (14:58 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 22 Mar 2007 14:58:45 +0000 (14:58 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3335 48e7efb5-ca39-0410-a469-dd3cf9ba447f

acmacro/context.m4

index 604457e..f90eaf5 100644 (file)
@@ -136,7 +136,7 @@ ucontext_t uc_main;
 
 void child(void *arg)
 {
 
 void child(void *arg)
 {
-    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);
@@ -162,7 +162,7 @@ int main(int argc, char *argv[])
     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)