linux-mips
[Top] [All Lists]

Re: Exceptions

To: Carsten Langgaard <carstenl@mips.com>
Subject: Re: Exceptions
From: Ralf Baechle <ralf@oss.sgi.com>
Date: Thu, 9 Dec 1999 08:44:01 -0200
Cc: sgi-mips <linux@cthulhu.engr.sgi.com>
In-reply-to: <384F62DB.8DE09E3B@mips.com>
References: <384EDFC5.FFAE939A@ti.com> <384F62DB.8DE09E3B@mips.com>
Sender: owner-linuxmips@oss.sgi.com
On Thu, Dec 09, 1999 at 09:05:47AM +0100, Carsten Langgaard wrote:

> > I have been working through the initialization code for the MIPS/Linux
> > kernel and have traced through to the point
> > where the MIPS exceptions are installed.  I have not been able to locate
> > the following routines
> >
> >         handle_adel
> >         handle_ades
> >         handle_sys
> >         handle_bp
> >         handle_n
> >         handle_cpu
> >         handle_ov
> >         handle_tr
> >         handle_fpe
> >
> > I see where these are defined by "extern asmlinkage" references but
> > can't locate the actual implementation of these
> > exceptions.  Any idea what files these routines might be located in?
> > Any help would be greatly appreciated
> 
> They are located in arch/mips/kernel/entry.S
> They are a little hard to find as they use the BUILD_HANDLER macro to
> extract the routines.

No wonder why I haven't ever received a patch for these routines since
the MIPS port exists :-)

They should be rewritten anyway; the current code expands the macro
SAVE_ALL quite often, so has a bad cache performance.

  Ralf

<Prev in Thread] Current Thread [Next in Thread>