All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: "kapilkumar.jain" <kapilkumar.jain@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] Interrupt Handling in Xenomai
Date: Tue, 11 Dec 2007 13:20:50 +0100	[thread overview]
Message-ID: <475E80A2.5080203@domain.hid> (raw)
In-Reply-To: <00a501c83bee$de20b5c0$2903050a@domain.hid>

kapilkumar.jain wrote:
> Hello all,
> 
> The problem i faced in Registering Interrupt in Xenomai, if my interrupt line is shared with the ethernet irqs.
> 
> If we register for the interrupt line which is shared by ethernet irqs we will get the continuous interrupt.
> 
> According to the Xenomai interrupt handling - we should return RTDM_IRQ_NONE for unhandled interrupt.
> and RTDM_IRQ_HANDLED for interrupt handled.
> 
> the problem if I return RTDM_IRQ_NONE, system get hanged with message
> __XINTIRQ_ No Body cared for IRQ 19
> 
> IRQ 19 - same irq sharing with ethernet & my module.
> 
> If instead of RTDM_IRQ_NONE i will return 0; it will not hang.
> but i am not sure about the functionality when it wil share with some other irq which is important.
> 
> what is the meaning of returning 0 from Xenomai ISR?

Using 0 directly is not valid, always use the constants, they (or they
docs) explain their meaning.

I guess you are rather looking for this explanation:

http://www.xenomai.org/index.php/FAQs
"What can I do if Xenomai and Linux devices share the same IRQ?"

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


  reply	other threads:[~2007-12-11 12:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-11 12:10 [Xenomai-core] Interrupt Handling in Xenomai kapilkumar.jain
2007-12-11 12:20 ` Jan Kiszka [this message]
2007-12-12 12:19   ` kapilkumar.jain

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=475E80A2.5080203@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=kapilkumar.jain@domain.hid \
    --cc=xenomai@xenomai.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.