Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jun 2000 09:27:51 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Luoqi Chen <luoqi@watermarkgroup.com>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Syscalls and execve
Message-ID:  <Pine.BSF.4.21.0006110927230.68954-100000@salmon.nlsystems.com>
In-Reply-To: <200006110059.e5B0xpk14371@lor.watermarkgroup.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0006110927230.68954-100000>