|
From: <sv...@va...> - 2005-07-20 13:50:00
|
Author: tom
Date: 2005-07-20 14:49:55 +0100 (Wed, 20 Jul 2005)
New Revision: 4217
Log:
Document different argument order for clone on amd64.
Modified:
trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
Modified: trunk/coregrind/m_syswrap/syswrap-amd64-linux.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2005-07-20 13:45:43 U=
TC (rev 4216)
+++ trunk/coregrind/m_syswrap/syswrap-amd64-linux.c 2005-07-20 13:49:55 U=
TC (rev 4217)
@@ -496,7 +496,9 @@
VG_(sigprocmask)(VKI_SIG_SETMASK, &mask, &fork_saved_mask);
=20
/* 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 =3D VG_(do_syscall5)( __NR_clone, flags,=20
(UWord)NULL, (UWord)parent_tidptr,=20
(UWord)child_tidptr, (UWord)NULL );
|