]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Document different argument order for clone on amd64.
authorTom Hughes <tom@compton.nu>
Wed, 20 Jul 2005 13:49:55 +0000 (13:49 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 20 Jul 2005 13:49:55 +0000 (13:49 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4217

coregrind/m_syswrap/syswrap-amd64-linux.c

index 2aa9583d566ae28d72d8bfb1b219411ceaf1a8e7..8f115e9b0329abb698cefca9ded374afc95dd25a 100644 (file)
@@ -496,7 +496,9 @@ static SysRes do_fork_clone ( ThreadId tid,
    VG_(sigprocmask)(VKI_SIG_SETMASK, &mask, &fork_saved_mask);
 
    /* Since this is the fork() form of clone, we don't need all that
-      VG_(clone) stuff */
+      VG_(clone) stuff - note that the last two arguments are the
+      opposite way round to x86 and ppc32 as the amd64 kernel expects
+      the arguments in a different order */
    res = VG_(do_syscall5)( __NR_clone, flags, 
                            (UWord)NULL, (UWord)parent_tidptr, 
                            (UWord)child_tidptr, (UWord)NULL );