set_except_vector question
hello,Lars Munch
2001-09-01 18:10:00:
Quoted 1 line
What do you mean by "synthesizing a jump"?
I think he means " making a jump instruction"
and yes.
the "j handler" instruction can be made that way:
_______________________
|opcode | target |
-----------------------
opcode for j is 000010,the target pc is computed as currentpc[31-28]||target||00Quoted 6 lines
My CPU is a 5Kc and it has a DIVEC which is set to the mipsIRQ function in /arch/mips64/mips-boards/generic/mipsIRQ.S to handle interrupts. But I still do not understand the address manipulation which is done before storing the function pointer (handler).
Quoted 36 lines
Thanks
Lars MunchQuoted 32 lines · Bradley D. LaRonde
Looks like it is synthesizing a jump (j) instruction to forward interrupt exceptions to the interrupt handler for cpus that have a dedicated interrupt vector (DIVEC).
arch/mips/kernel/setup.csets the DIVEC option for certain cpus.Regards,
Brad----- Original Message -----
From: "Lars Munch" <[email protected]>
To: <[email protected]>
Sent: Saturday, September 01, 2001 10:58 AM
Subject:set_except_vectorquestionQuoted 7 lines
Hi
I have been looking at the
set_except_vectorfunction in arch/mips[64]/kernel/traps.c and wondering why the handler address is changed/recalculated before it is stored:*(volatile u32 *)(KSEG0+0x200) =
0x08000000| (0x03ffffff& (handler >>2));
Quoted 1 line
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Quoted 6 lines
Could someone please enlighten me?
Thanks
Lars Munch
Regards
Fuxin Zhang
[email protected]