From owner-freebsd-current Mon Nov 2 00:14:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA29788 for freebsd-current-outgoing; Mon, 2 Nov 1998 00:14:42 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles312.castles.com [208.214.167.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA29781 for ; Mon, 2 Nov 1998 00:14:40 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id AAA08887; Mon, 2 Nov 1998 00:14:08 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199811020814.AAA08887@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Brian Feldman cc: current@FreeBSD.ORG Subject: Re: Linux clone() In-reply-to: Your message of "Sun, 01 Nov 1998 23:12:38 EST." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 02 Nov 1998 00:14:08 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Okay, guys, I think I've gotten a linux clone() syscall implemented... As Neat. Wrong list perhaps though. (-emulation) > of now, I have nothing to test it with :( The only thing I have to try it > with is MpegTV, and for some really crazy reason: > linux_clone()->(1569, 1570); child eip=0xf00, esp=0x80ed0b4 > Now come on, passing 0xf00 as the void *fn (really int (*fn)(void *)) is > pretty damned bogus (but hey, it's not zero, so it turns into the child's > instruction pointer...) If anyone has any REALY examples of programs to > test with this, let me know.... First off; what do you get if you trace it on a Linux system? Are you sure the args are formatted correctly? > This is a pretty important thing to have, > when lots more apps use linuxthreads (i.e. StarOffice 5.0). No kidding. > Oh, BTW, > someone tell me if this would be something really terrible to accidentally > do in kernel space: > printf("%d %d %#x %#x"); > note no arguments... so far I don't notice any destabilization but I sure > hope I didn't fudge up the kernel stack! Nope; that's generally harmless, just prints lots of garbage. As for test apps; someone ought to be able to build you a trivial clone() test program on a Linux system. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message