Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 1998 15:58:21 -0600
From:      "Richard Seaman, Jr." <dick@tar.com>
To:        Brian Feldman <green@unixhelp.org>
Cc:        Mike Smith <mike@smith.net.au>, emulation@FreeBSD.ORG
Subject:   Re: StarOffice 5.0?
Message-ID:  <19981228155821.C4581@tar.com>
In-Reply-To: <Pine.BSF.4.05.9812281647220.1243-100000@janus.syracuse.net>; from Brian Feldman on Mon, Dec 28, 1998 at 04:50:08PM -0500
References:  <199812282137.NAA12785@dingo.cdrom.com> <Pine.BSF.4.05.9812281647220.1243-100000@janus.syracuse.net>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981228155821.C4581>