linux-mips
[Top] [All Lists]

Re: [Help] R3000 CPU porting, Oops while run app

To: linux-mips@linux-mips.org
Subject: Re: [Help] R3000 CPU porting, Oops while run app
From: arrow zhang <arrow.ebd@gmail.com>
Date: Tue, 17 Aug 2010 11:49:27 +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=in5MaGubMXJomI4DnHKVH0Lu8HS19IshMALNimpb0e8=; b=r2Tx5L+Tw1wPkfX0gqDHblj9HkU2oPFq11e4j5IQFdfdKeLFBPF02m7aAyzBZqVfwP xuhVaYVEbt04SgrUu2d12dBIxeLP94MnhefjAOF1sLz69x2DTHOHM+gl6AipJzO56Phj 6Vztpsu0I8dO0z1wbZwM7plWKYMHYHa9N+hvs=
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=aSbWuqrUdzXMSocGScZULi3BaFE9FL9B1dAlropkOnvFPUQMP/Za1csFv4kpIE7MKw 82pC4xlcfSoVAfspnmU2caI/xYHGjnVcBpmCQ73QPzPY9F6vqnvj3Oj9XYhWmjuWR6Q2 3WMUA1Zj8Y4/LYp8YeYTVKbyKa/4S/H14DctA=
In-reply-to: <AANLkTi=bs4wJqG-3MeFJfr8sGC-s9PG_KksCY5TLo7ra@mail.gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <AANLkTi=bs4wJqG-3MeFJfr8sGC-s9PG_KksCY5TLo7ra@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
Dears,

yeah, I have known some reason on it:
* not call "mips_cpu_irq_init" in function "arch_init_irq"
* and did not use "set_irq_chip_and_handler"
* before I only setup the "chip" with code "irq_desc[i].chip =
&irq_type;", but it is for old kernel(2.6.19)

so new code is:
void __init arch_init_irq(void)
{
        int i;

        mips_cpu_irq_init();
        for (i = 0; i < 32; ++i) {
                set_irq_chip_and_handler(i, &irq_type, handle_level_irq);
        }
}

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