Linux MIPS Architecture development
 help / color / mirror / Atom feed
* do_ri
@ 2003-07-02 15:16 Sirotkin, Alexander
  2003-07-02 15:28 ` do_ri Maciej W. Rozycki
  0 siblings, 1 reply; 6+ messages in thread
From: Sirotkin, Alexander @ 2003-07-02 15:16 UTC (permalink / raw)
  To: linux-mips

Hello dearest all,

Can anyone please enlighten me about the do_ri function ? I could not
find any reference to what it does and when it's  called anywhere.

The real reason I'm asking is because I get BUG() somewhere
in that function and I can not figure when it's getting called.

10x.

-- 
Alexander Sirotkin
SW Engineer

Texas Instruments
Broadband Communications Israel (BCIL)
Tel:  +972-9-9706587
________________________________________________________________________
"Those who do not understand Unix are condemned to reinvent it, poorly."
      -- Henry Spencer 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: do_ri
  2003-07-02 15:16 do_ri Sirotkin, Alexander
@ 2003-07-02 15:28 ` Maciej W. Rozycki
  2003-07-02 15:36   ` do_ri Sirotkin, Alexander
  0 siblings, 1 reply; 6+ messages in thread
From: Maciej W. Rozycki @ 2003-07-02 15:28 UTC (permalink / raw)
  To: Sirotkin, Alexander; +Cc: linux-mips

On Wed, 2 Jul 2003, Sirotkin, Alexander wrote:

> Can anyone please enlighten me about the do_ri function ? I could not
> find any reference to what it does and when it's  called anywhere.

 It's called from arch/mips/kernel/entry.S or
arch/mips64/kernel/r4k_genex.S to handle the Reserved Instruction
exception. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: do_ri
  2003-07-02 15:28 ` do_ri Maciej W. Rozycki
@ 2003-07-02 15:36   ` Sirotkin, Alexander
  2003-07-02 15:51     ` do_ri Geert Uytterhoeven
  0 siblings, 1 reply; 6+ messages in thread
From: Sirotkin, Alexander @ 2003-07-02 15:36 UTC (permalink / raw)
  To: Maciej W. Rozycki; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 1093 bytes --]

Are you sure ?

Because "grep -r" shows only 

./arch/mips/kernel/traps.c:asmlinkage void do_ri(struct pt_regs *regs)
./arch/mips/kernel/traps.c:             do_ri(regs);
./arch/mips/lx/lxRi.c:  do_ri(regp);

On my linux-2.4.17_mvl21 kernel. And I'm quite sure that when my kernel 
crashes it's not being called from any of these places.

But then again, may be in may case it's getting called only because some

memory get overwritten.

Maciej W. Rozycki wrote:


On Wed, 2 Jul 2003, Sirotkin, Alexander wrote:



  

Can anyone please enlighten me about the do_ri function ? I could not

find any reference to what it does and when it's  called anywhere.

    



 It's called from arch/mips/kernel/entry.S or

arch/mips64/kernel/r4k_genex.S to handle the Reserved Instruction

exception. 



  


-- 

Alexander Sirotkin

SW Engineer



Texas Instruments

Broadband Communications Israel (BCIL)

Tel:  +972-9-9706587

________________________________________________________________________

"Those who do not understand Unix are condemned to reinvent it, poorly."

      -- Henry Spencer 

[-- Attachment #2: Type: text/html, Size: 1633 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: do_ri
  2003-07-02 15:36   ` do_ri Sirotkin, Alexander
@ 2003-07-02 15:51     ` Geert Uytterhoeven
  2003-07-02 15:57       ` do_ri Ralf Baechle
  2003-07-02 16:08       ` do_ri Sirotkin, Alexander
  0 siblings, 2 replies; 6+ messages in thread
From: Geert Uytterhoeven @ 2003-07-02 15:51 UTC (permalink / raw)
  To: Sirotkin, Alexander; +Cc: Maciej W. Rozycki, Linux/MIPS Development

On Wed, 2 Jul 2003, Sirotkin, Alexander wrote:
> Are you sure ?
> 
> Because "grep -r" shows only 
> 
> ./arch/mips/kernel/traps.c:asmlinkage void do_ri(struct pt_regs *regs)
> ./arch/mips/kernel/traps.c:             do_ri(regs);
> ./arch/mips/lx/lxRi.c:  do_ri(regp);
> 
> On my linux-2.4.17_mvl21 kernel. And I'm quite sure that when my kernel 
> crashes it's not being called from any of these places.

I remember getting bitten by that one, too...

Check out BUILD_HANDLER(ri,ri,sti,silent) in arch/mips/kernel/entry.S.

Grep isn't always your friend, `nm -g' is, in this case :-)

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: do_ri
  2003-07-02 15:51     ` do_ri Geert Uytterhoeven
@ 2003-07-02 15:57       ` Ralf Baechle
  2003-07-02 16:08       ` do_ri Sirotkin, Alexander
  1 sibling, 0 replies; 6+ messages in thread
From: Ralf Baechle @ 2003-07-02 15:57 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Sirotkin, Alexander, Maciej W. Rozycki, Linux/MIPS Development

On Wed, Jul 02, 2003 at 05:51:37PM +0200, Geert Uytterhoeven wrote:

> > 
> > ./arch/mips/kernel/traps.c:asmlinkage void do_ri(struct pt_regs *regs)
> > ./arch/mips/kernel/traps.c:             do_ri(regs);
> > ./arch/mips/lx/lxRi.c:  do_ri(regp);
> > 
> > On my linux-2.4.17_mvl21 kernel. And I'm quite sure that when my kernel 
> > crashes it's not being called from any of these places.
> 
> I remember getting bitten by that one, too...
> 
> Check out BUILD_HANDLER(ri,ri,sti,silent) in arch/mips/kernel/entry.S.
> 
> Grep isn't always your friend, `nm -g' is, in this case :-)

I guess people not finding the callers of the do_* functions is one of the
most common questions on this list :-)

  Ralf

PS: Ever heared of Intercal? ;-)

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: do_ri
  2003-07-02 15:51     ` do_ri Geert Uytterhoeven
  2003-07-02 15:57       ` do_ri Ralf Baechle
@ 2003-07-02 16:08       ` Sirotkin, Alexander
  1 sibling, 0 replies; 6+ messages in thread
From: Sirotkin, Alexander @ 2003-07-02 16:08 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Maciej W. Rozycki, Linux/MIPS Development

[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]

Got it. 10x.

Geert,
You save me for second time in a row today, I feel like I owe you a beer
:)

Geert Uytterhoeven wrote:


On Wed, 2 Jul 2003, Sirotkin, Alexander wrote:

  

Are you sure ?



Because "grep -r" shows only 



./arch/mips/kernel/traps.c:asmlinkage void do_ri(struct pt_regs *regs)

./arch/mips/kernel/traps.c:             do_ri(regs);

./arch/mips/lx/lxRi.c:  do_ri(regp);



On my linux-2.4.17_mvl21 kernel. And I'm quite sure that when my kernel 

crashes it's not being called from any of these places.

    



I remember getting bitten by that one, too...



Check out BUILD_HANDLER(ri,ri,sti,silent) in arch/mips/kernel/entry.S.



Grep isn't always your friend, `nm -g' is, in this case :-)



Gr{oetje,eeting}s,



						Geert



--

Geert Uytterhoeven -- There's lots of Linux beyond ia32 --
geert@linux-m68k.org <mailto:geert@linux-m68k.org> 



In personal conversations with technical people, I call myself a hacker.
But

when I'm talking to journalists I just say "programmer" or something
like that.

							    -- Linus
Torvalds

  


-- 

Alexander Sirotkin

SW Engineer



Texas Instruments

Broadband Communications Israel (BCIL)

Tel:  +972-9-9706587

________________________________________________________________________

"Those who do not understand Unix are condemned to reinvent it, poorly."

      -- Henry Spencer 

[-- Attachment #2: Type: text/html, Size: 1824 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-07-02 16:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-02 15:16 do_ri Sirotkin, Alexander
2003-07-02 15:28 ` do_ri Maciej W. Rozycki
2003-07-02 15:36   ` do_ri Sirotkin, Alexander
2003-07-02 15:51     ` do_ri Geert Uytterhoeven
2003-07-02 15:57       ` do_ri Ralf Baechle
2003-07-02 16:08       ` do_ri Sirotkin, Alexander

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox