From owner-freebsd-arch Sun Jun 11 1:23:20 2000 Delivered-To: freebsd-arch@freebsd.org Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by hub.freebsd.org (Postfix) with ESMTP id C806237B57A for ; Sun, 11 Jun 2000 01:23:11 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from nlsys.demon.co.uk ([158.152.125.33] helo=herring.nlsystems.com) by anchor-post-34.mail.demon.net with esmtp (Exim 2.12 #1) id 13131P-000HIx-0Y; Sun, 11 Jun 2000 09:23:07 +0100 Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id JAA73221; Sun, 11 Jun 2000 09:24:11 +0100 (BST) (envelope-from dfr@nlsystems.com) Date: Sun, 11 Jun 2000 09:27:51 +0100 (BST) From: Doug Rabson To: Luoqi Chen Cc: arch@FreeBSD.ORG Subject: Re: Syscalls and execve In-Reply-To: <200006110059.e5B0xpk14371@lor.watermarkgroup.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 10 Jun 2000, Luoqi Chen wrote: > > I think an exec_trampoline might well be the best solution. I can't quite > > see how to work it though. > > > > -- > > Doug Rabson Mail: dfr@nlsystems.com > > Nonlinear Systems Ltd. Phone: +44 20 8442 9037 > > > I would put the trampoline code right below the arguments, so it won't waste > any stack space. I would first place $pc, $a0, $a3 values into $ra, $s0, $s1 > registers in the shorter trapframe, and in the trampoline code, copy from > $s0/1 to $a0/3, clear $s0/1 and other volatile registers, return. That sounds workable. I'll see about doing that - thanks for the idea. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 20 8442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message