From owner-freebsd-arch Sat Jun 10 17:59:54 2000 Delivered-To: freebsd-arch@freebsd.org Received: from lor.watermarkgroup.com (lor.watermarkgroup.com [207.202.73.33]) by hub.freebsd.org (Postfix) with ESMTP id 9E53537BE13 for ; Sat, 10 Jun 2000 17:59:52 -0700 (PDT) (envelope-from luoqi@watermarkgroup.com) Received: (from luoqi@localhost) by lor.watermarkgroup.com (8.10.1/8.10.1) id e5B0xpk14371; Sat, 10 Jun 2000 20:59:51 -0400 (EDT) Date: Sat, 10 Jun 2000 20:59:51 -0400 (EDT) From: Luoqi Chen Message-Id: <200006110059.e5B0xpk14371@lor.watermarkgroup.com> To: dfr@nlsystems.com Subject: Re: Syscalls and execve Cc: arch@FreeBSD.ORG Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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. -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message