From: "Sébastien Taylor" <sebastient@otii.com>
To: linux-mips@linux-mips.org
Subject: Re: Problem registering interrupt
Date: Thu, 6 Jan 2005 15:19:44 -0700 [thread overview]
Message-ID: <11829755-6031-11D9-A1F1-000393DBC6BE@otii.com> (raw)
In-Reply-To: <20041222104457.GR2460@lug-owl.de>
So the crash is happening because the handler pointer is null in the
irq_desc for interrupt 49. Is there something that I was supposed to
do to setup that handler before registering my interrupt? This was
working fine under 2.4, is it a change in 2.6 or just in the alchemy
port specifically?
Thanks for the help and happy new years,
Sébastien
Le 04-12-22, à 03:44, Jan-Benedict Glaw a écrit :
> On Wed, 2004-12-22 11:19:06 +0100, moreau francis
> <francis_moreau2000@yahoo.fr>
> wrote in message
> <20041222101906.27137.qmail@web25109.mail.ukl.yahoo.com>:
>>
>>> CPU 0 Unable to handle kernel paging request at
>>> virtual address 00000004, epc =4
>>
>> Well it suggests me that your driver is trying to
>> access a really nasty pointer: 0x00000004...
>> How did you get this address ? From user space ?
>
> Accesses to nearly NULL are normally structure accesses where a pointer
> to a given struct was supplied as a NULL pointer.
>
> So an access to 0x00000004 is most probably an access to the second
> element of a struct, given/expected that all fields are usually 4-byte
> aligned.
>
>> From looking at ./kernel/irq/manage.c:setup_irq(), I guess that you
> supply NULL as the "struct irqaction *", which is the 2nd argument of
> setup_irq(). It's 2nd structure element is "flags" then... This is the
> first thing accessed by the "new" pointer in setup_irq().
>
> MfG, JBG
>
> --
> Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481
> _ O _
> "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen
> Krieg _ _ O
> fuer einen Freien Staat voll Freier Bürger" | im Internet! | im
> Irak! O O O
> ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM |
> TCPA));
next prev parent reply other threads:[~2005-01-06 22:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <41C947CC.20709@innova-card.com>
2004-12-22 10:19 ` Problem registering interrupt moreau francis
2004-12-22 10:44 ` Jan-Benedict Glaw
2004-12-22 10:44 ` Jan-Benedict Glaw
2005-01-06 22:19 ` Sébastien Taylor [this message]
2004-12-21 17:55 Sébastien Taylor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11829755-6031-11D9-A1F1-000393DBC6BE@otii.com \
--to=sebastient@otii.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.