From: Dan Malek <dan@embeddededge.com>
To: Rudolf Ladyzhenskii <rudolf.ladyzhenskii@act-aus.net>
Cc: "Linuxppc-Embedded (E-mail)" <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: request_irq () kills kernel
Date: Wed, 21 Nov 2001 22:38:58 -0500 [thread overview]
Message-ID: <3BFC7352.6020204@embeddededge.com> (raw)
In-Reply-To: B164B53F5BD6D511888D009027732E1A024972@ntserver.act.domain
Rudolf Ladyzhenskii wrote:
> I was looking through the kernel code and I discovered that other drivers
> use request_8xxirq() instead of request_irq().
Hmmm.....I didn't think request_irq() should exist. The reason for the
name change is to ensure people writing the drivers know a different
integrated interrupt controller is in use and to catch any legacy drivers
that would call request_irq() and mess up the interrupt controller.
We are discussing other options, but I'm holding out for a more generic
solution to all of the interrupt controller variants.
> ..... Now, those things have been
> defined to be same in /arch/ppc/kernel/irq.c, but both appear in System.map.
> Which one should I use?
You should only be using request_8xxirq() for all integrated peripherals.
> Also, anyone have any ideas why kernel would die?
> I am trying to hook to interrupt 0x0c (Timer0) and I checked SIMR_L register
> to make sure Timer interrupts are masked.
Installing an interrupt handler will automatically unmask that interrupt.
If the hardware isn't properly initialized, like the timer is constantly
generating interrupts, you will get stuck in an infinite interrupt loop.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2001-11-22 3:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-22 0:32 request_irq () kills kernel Rudolf Ladyzhenskii
2001-11-22 3:38 ` Dan Malek [this message]
2001-11-26 15:35 ` Peter Barada
-- strict thread matches above, loose matches on Subject: below --
2001-11-22 3:47 Rudolf Ladyzhenskii
2001-11-22 3:59 ` Dan Malek
2001-11-22 4:05 Rudolf Ladyzhenskii
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=3BFC7352.6020204@embeddededge.com \
--to=dan@embeddededge.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=rudolf.ladyzhenskii@act-aus.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).