From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre McCurdy To: Jim Wilson Cc: gcc@gcc.gnu.org Subject: Re: MIPS16 -mentry pseudo instruction definitions Date: Mon, 13 Sep 1999 05:53:00 -0000 Message-id: <19990913125633.17782.rocketmail@web601.yahoomail.com> X-SW-Source: 1999-09/msg00485.html --- Jim Wilson wrote: > The file libgloss/mips/entry.S contains an > implementation of entry/exit > trap handlers for mips16. This is the best > documentation that I am aware of. > > You can find a copy of this file in the newlib-1.8.1 > release available from > the sourceware.cygnus.com ftp site. > After a quick look at this code, i believe there may be a bug in the handling of entry instructions - the handler returns to EPC (ie the address of the entry instruction) rather than EPC+2, which will result in an infinite loop. Has anyone ever used this code ?? Aside from this possible bug, there are no comments which give a clue as to why the stack frame size is fixed at 32bytes, which is the question which really bothers me. Is there any way of tracking down when the -mentry option became part of gcc (and where the code come from) ? ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre McCurdy To: Jim Wilson Cc: gcc@gcc.gnu.org Subject: Re: MIPS16 -mentry pseudo instruction definitions Date: Thu, 30 Sep 1999 18:02:00 -0000 Message-ID: <19990913125633.17782.rocketmail@web601.yahoomail.com> X-SW-Source: 1999-09n/msg00485.html Message-ID: <19990930180200.unCxYQhNhuVgfrkB5TpseTswatENFSxl04eTxIdq99Q@z> --- Jim Wilson wrote: > The file libgloss/mips/entry.S contains an > implementation of entry/exit > trap handlers for mips16. This is the best > documentation that I am aware of. > > You can find a copy of this file in the newlib-1.8.1 > release available from > the sourceware.cygnus.com ftp site. > After a quick look at this code, i believe there may be a bug in the handling of entry instructions - the handler returns to EPC (ie the address of the entry instruction) rather than EPC+2, which will result in an infinite loop. Has anyone ever used this code ?? Aside from this possible bug, there are no comments which give a clue as to why the stack frame size is fixed at 32bytes, which is the question which really bothers me. Is there any way of tracking down when the -mentry option became part of gcc (and where the code come from) ? ____________________________________________________________ Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie