Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Aug 2006 10:40:40 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 103012 for review
Message-ID:  <200608021040.k72AeeX0035775@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103012

Change 103012 by rdivacky@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( \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608021040.k72AeeX0035775>