PERFORCE change 103012 for review

Roman Divacky rdivacky at FreeBSD.org
Wed Aug 2 10:40:41 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=103012

Change 103012 by rdivacky at rdivacky_witten on 2006/08/02 10:40:31

	Add dummy arg to the linux_clone(). Linux uses some very strange calling convention here.
	linux_clone() takes 4 args but the 4th is addressed as 5th.
	
	Found by: kib

Affected files ...

.. //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/syscalls.master#20 edit

Differences ...

==== //depot/projects/soc2006/rdivacky_linuxolator/i386/linux/syscalls.master#20 (text+ko) ====

@@ -214,8 +214,9 @@
 118	AUE_FSYNC	NOPROTO	{ int fsync(int fd); }
 119	AUE_SIGRETURN	STD	{ int linux_sigreturn( \
 				    struct l_sigframe *sfp); }
+; linux uses some strange calling convention here so we have to use the dummy arg
 120	AUE_RFORK	STD	{ int linux_clone(l_int flags, void *stack, \
-				    void *parent_tidptr, void * child_tidptr); }
+				    void *parent_tidptr, int dummy, void * child_tidptr); }
 121	AUE_SYSCTL	NOPROTO { int setdomainname(char *name, \
 				    int len); }
 122	AUE_NULL	STD	{ int linux_newuname( \


More information about the p4-projects mailing list