Subject: Re: N32 support (patch proposal)
To: None <port-mips@netbsd.org>
From: Wayne Knowles <wdk@netbsd.org>
List: port-mips
Date: 01/03/2002 09:02:37
On Wed, 2 Jan 2002, Emmanuel Dreyfus wrote:

> This patch is for launching N32 binaries. Is it reasonable to commit it to the
> tree?

Emmanuel,

setregs() calls setregs_o32() which calls setregs1() which does exactly
what setregs() used to do!!
This makes the common case suffer thru 2 extra function calls that do
absolutely nothing.

Could you not stick with the original setregs() and have setregs_{o,n}32
call it directly???  This removes 2 levels of function calls when
executing NetBSD binaries.

setregs_{o,n}32 may be better suited in the compat_irix sources which is
the reason for the requirement.

setting MIPS3_SR_XX may not be necessary - if I am decoding the bits
correctly it enables co-processor 3, which doesn't exist.

-- 
Wayne Knowles			NetBSD/mipsco port maintainer
wdk@netbsd.org			http://www.netbsd.org