[Top] [All Lists]

Re: Problem About Vectored interrupt

Subject: Re: Problem About Vectored interrupt
From: "Dennis.Yxun" <>
Date: Mon, 27 Dec 2010 22:00:52 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=7oJMEzcl8s4upHe6PVBacmTTHziHpkuiHjog8M8pOpc=; b=TLJDYMirKhdNKMVxZy8V5cqdZb7Gnbp1h45IGON/nwXtNj0rffE3fhEVfy48HEQxUH 5Mh/S1aMifpXzaQoP6omFB0LWQbBZTLeRih4VpYfUgAMPT+GzfNC8qS8lkzIw6NC0Amc hxYj4dH9o18b/oHtS6nlOHs/++bxI0CNRGc8E=
Domainkey-signature: a=rsa-sha1; c=nofws;; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Zv+88mA0jl6xEN9eAXGOr6naLqzUEjfrwQ80xmXrwXfRa4qgkomxtvxUH4sXtl0slf vEzne09/PiS1V9b627jM9QCQCX1wKGJude2mpRYSUwleLQkZ5nfHgQrAyKnzJWozFcgB QH1wSiOKsvqqRN2ccelxsiAZ0Hg6IDDS7bc+o=
In-reply-to: <>
Original-recipient: rfc822;
References: <>
   Here is my patch which hacked set_vi_srs_handler, with this I could successfully bring timer(compare/counter),
   But I still not reach the root problem,
Could someone shine some lights on me.


On Mon, Dec 27, 2010 at 4:40 PM, Dennis.Yxun <> wrote:
    I'm try to porting kernel-2.6.36 to one mips24kc board, seems it can't bind vectored irq 7 to timer interrupt.
The hardware wired IP7 to timer interrupt (CP0 compare/counter interrupt)
    I implemented my own time.c, use set_vi_handler to map cp0_compare_irq(value: 7) to mips_timer_dispatch,
 but weird problem, it didn't successfully map to mips_timer_dispatch, but print out "Caught unexpected vectored interrupt."
which means it still use " static asmlinkage void do_default_vi(void)"  [1]

   My question is : why first call to "set_vi_srs_handler" successfully mapped to vectored irq7 [2]
but later is fail[3], see my attached file, bad_kernel.txt


[1] arch/mips/kernel/traps.c 1339
[2] arch/mips/kernel/traps.c  1436, when addr == NULL
[3] my attached file time.c get_c0_compare_int

Attachment: mips_timer.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Problem About Vectored interrupt, Dennis.Yxun <=