Skip to contentSkip to conversation

Problem caused by forcing interrupt vector location to 0x91xx0200 instead of 0x80000200

DISCUSSION Kang 2 participants 2 messages Oct 15, 2004 MIPS

lore
Share & tools
lore

Kang

author
#0 lore raw

Hello buddies,

I am working on a MIPS4Kc based reference design board. For some reason, I need to force the interrupt vector location to address 0x91xx0200 instead of 0x80000200 in arch/mips/kernel/traps.c. The kernel was loaded into 0x91xxxxxx space as well.

The kernel hung just after the interrupt was first time opened, after sti(), before calibrate_delay() in init/main.c. It was weird that I didn't see any problem if I put interrupt vector to location 0x80000200 while all other exception vectors to 0x91xxxxxx.

Was interrupt vector location hardcode to the address 0x80000200? Or some other place I need to change to walk around it. Any idea?

Thanks a bunch for your help.

Leo

#1 lore raw

Prior to Release 2 of the MIPS32 Architecture, the exception vectors were fixed at a base of 0x80000000, which put the vectored interrupt offset at 0x80000200.

The MIPS32 4Kc processor is an implementation of Release 1 of the Architecture, so it has a fixed exception vector base. (Note that the MIPS32 4KEc - the added 'E' is significant - implements Release 2 so in case you mis-typed, there is a solution using the 4KEc).

So with a Release 1 implementation, your only really solution is to put a jump at 0x80000200 to where you want the code to be. I suspect that this isn't really what you want.

/gmu

Quoted 18 lines · Kang

Hello buddies,

I am working on a MIPS4Kc based reference design board. For some reason, I need to force the interrupt vector location to address 0x91xx0200 instead of 0x80000200 in arch/mips/kernel/traps.c. The kernel was loaded into 0x91xxxxxx space as well.

The kernel hung just after the interrupt was first time opened, after sti(), before calibrate_delay() in init/main.c. It was weird that I didn't see any problem if I put interrupt vector to location 0x80000200 while all other exception vectors to 0x91xxxxxx.

Was interrupt vector location hardcode to the address 0x80000200? Or some other place I need to change to walk around it. Any idea?

Thanks a bunch for your help.

Leo

Signature · 4 lines
Michael Uhler, Chief Technology Officer
MIPS Technologies, Inc.  Email: [email protected]
1225 Charleston Road
Mountain View, CA 94043