linux-mips
[Top] [All Lists]

Re: Problem About Vectored interrupt

To: linux-mips@linux-mips.org
Subject: Re: Problem About Vectored interrupt
From: "Dennis.Yxun" <dennis.yxun@gmail.com>
Date: Mon, 27 Dec 2010 22:00:52 +0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; 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; d=gmail.com; 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: <AANLkTinhM4PUmLbWeAyavf-JPM1Xpu9pJVkXDq4c-f0C@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <AANLkTinhM4PUmLbWeAyavf-JPM1Xpu9pJVkXDq4c-f0C@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
HI:
   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.
   Thanks

Dennis


On Mon, Dec 27, 2010 at 4:40 PM, Dennis.Yxun <dennis.yxun@gmail.com> wrote:
HI ALL:
    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

Dennis


[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 <=