linux-mips
[Top] [All Lists]

set_except_vector question

To: linux-mips@oss.sgi.com
Subject: set_except_vector question
From: Lars Munch <lars@segv.dk>
Date: Sat, 1 Sep 2001 16:58:42 +0200
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
Hi

I have been looking at the set_except_vector function 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));
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^  

Could someone please enlighten me?

Thanks
Lars Munch 

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