From owner-freebsd-emulation Mon Dec 28 13:59:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA28454 for freebsd-emulation-outgoing; Mon, 28 Dec 1998 13:59:04 -0800 (PST) (envelope-from owner-freebsd-emulation@FreeBSD.ORG) Received: from ns.tar.com (ns.tar.com [204.95.187.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA28449 for ; Mon, 28 Dec 1998 13:59:01 -0800 (PST) (envelope-from dick@ns.tar.com) Received: (from dick@localhost) by ns.tar.com (8.9.1/8.9.1) id PAA08975; Mon, 28 Dec 1998 15:58:21 -0600 (CST) (envelope-from dick) Date: Mon, 28 Dec 1998 15:58:21 -0600 From: "Richard Seaman, Jr." To: Brian Feldman Cc: Mike Smith , emulation@FreeBSD.ORG Subject: Re: StarOffice 5.0? Message-ID: <19981228155821.C4581@tar.com> References: <199812282137.NAA12785@dingo.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95i In-Reply-To: ; from Brian Feldman on Mon, Dec 28, 1998 at 04:50:08PM -0500 Sender: owner-freebsd-emulation@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Dec 28, 1998 at 04:50:08PM -0500, Brian Feldman wrote: > > This looks ominously like the linux_pipe patches have been spammed by > > something else. > > I see nothing referring to p->p_md.md_regs->tf_edx, so I see no reason why it > should have been saved. > > int reg_edx; > reg_edx = p->p_retval[1]; > p->p_retval[1] = reg_edx; > p->p_retval[1] = reg_edx; > It's saving the value, but what's it got to do with edx? p->p_retval[1] writes to edx when returning to user space. The FreeBSD pipe syscall writes to p->p_retval[1]. Linux glibc wraps the linux pipe syscall, and expects edx to be preserved when the pipe syscall returns. -- Richard Seamman, Jr. email: dick@tar.com 5182 N. Maple Lane phone: 414-367-5450 Chenequa WI 53058 fax: 414-367-5852 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-emulation" in the body of the message