This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MIPS16 -mentry pseudo instruction definitions


--- Jim Wilson <wilson@cygnus.com> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]