mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Richard B. Johnson" <root@chaos.analogic.com>
To: Maikon Bueno <maikon@gmail.com>
Cc: Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: interrupt function
Date: Thu, 22 Jul 2004 22:39:24 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.53.0407222234120.21588@chaos> (raw)
In-Reply-To: <757c55c604072219086df290f6@mail.gmail.com>


If the device at 0x300 was interrupting, you would get an
interrupt and it will bump the count shown in your ISR.

Whatever that device at 0x300 is, needs to be programmed
to generate hardware interrupts. They don't happen by
magic. Usually, if edge triggered, you will only get
one interrupt until you put some code in your ISR to
handle that interrpt (make the hardware happy so it will
generate another).

If the interrupt is level triggered, code such as yours
will hang the machine because there is no ISR code to
service the hardware so the interrupt will be TRUE forever.


Cheers,
Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
            Note 96.31% of all statistics are fiction.



      reply	other threads:[~2004-07-23  2:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-23  2:08 Maikon Bueno
2004-07-23  2:39 ` Richard B. Johnson [this message]

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=Pine.LNX.4.53.0407222234120.21588@chaos \
    --to=root@chaos.analogic.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maikon@gmail.com \
    /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

all inboxes | Powered by JetHome®