Skip to contentSkip to conversation

do_ri

DISCUSSION Sirotkin, Alexander 4 participants 6 messages Jul 2, 2003 MIPS

lore
Share & tools
lore
#0 lore raw

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.

Signature · 9 lines
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 
#1 lore raw
Quoted 2 lines · Alexander

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.

Signature · 3 lines
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: [email protected], PGP key available        +
#2 lore raw

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.

Signature · 17 lines
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 
#3 lore raw
Quoted 10 lines · Alexander

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 -- [email protected]

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

#4 lore raw
Quoted 5 lines · Geert Uytterhoeven
Quoted 5 lines

./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);

Quoted 8 lines
Quoted 2 lines

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? ;-)

#5 lore raw
In reply to Geert Uytterhoeven

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 -- [email protected] <mailto:[email protected]>

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

Signature · 17 lines
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