From owner-freebsd-ppc Fri Jul 19 1:40:45 2002 Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83FCE37B400; Fri, 19 Jul 2002 01:40:43 -0700 (PDT) Received: from gt3.OntheNet.com.au (nt.com.au [203.13.70.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EA7643E6D; Fri, 19 Jul 2002 01:40:41 -0700 (PDT) (envelope-from peterg@ptree32.com.au) Received: from ptree32.com.au (CPE-203-45-246-228.qld.bigpond.net.au [203.45.246.228]) by gt3.OntheNet.com.au (8.11.4/8.11.4) with ESMTP id g6J8gcb79388; Fri, 19 Jul 2002 18:42:38 +1000 (EST) Message-ID: <3D37D489.49997C26@ptree32.com.au> Date: Fri, 19 Jul 2002 18:57:45 +1000 From: Peter Grehan Organization: Ptree32 Pty Ltd X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.2.14-12 i686) X-Accept-Language: en MIME-Version: 1.0 To: obrien@FreeBSD.ORG Cc: freebsd-ppc@FreeBSD.ORG Subject: Re: success level with peter g's patch.. References: <1027050508.3d378c0c98e84@www.wantpackets.com> <3D37BB53.D5486D0B@ptree32.com.au> <20020719080635.GA70923@dragon.nuxi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-ppc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi David, > How do other FreeBSD platforms handle this? That is more important. From a high-level view, it shouldn't matter: there is no non-error return from execve(), and all arch's handle EJUSTRETURN in syscall() for sigreturn. i386 doesn't get a register trash because the startup params are on the stack. For alpha, it looks like the ps_strings param is overwritten: machdep.c:setreg() tfp->tf_regs[FRAME_A3] = PS_STRINGS; /* a3 = ps_strings */ trap.c:syscall() switch (error) { case 0: ... framep->tf_regs[FRAME_A3] = 0; <- overwrite PS_STRINGS sparc64 already uses the td_retval[] trick, and does anyone really understand ia64 assembler ? :-) later, Peter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ppc" in the body of the message