From: Philippe Gerum <rpm@xenomai.org>
To: Henry Bausley <hbausley@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Recurring Interrupts
Date: Sat, 02 Aug 2008 09:38:56 +0200 [thread overview]
Message-ID: <48940F10.9060506@domain.hid> (raw)
In-Reply-To: <34db01c8f42b$57a4d350$0109220a@domain.hid>
Henry Bausley wrote:
> How do I setup xenomai so that my ISR can be re-entered even if I am
> currently in it.
>
Try this:
int your_isr(xnintr_t *intr)
{
unsigned long flags;
xnlock_clear_irqon(&nklock);
... your code ...
xnlock_get_irqsave(&nklock, flags); /* must re-lock on exit */
}
We do take a per-IRQ lock internally as well, but this is a no-brainer for the
issue at stake.
NOTE: this solution is only valid in uniprocessor mode. SMP would run into
deadlocks; we would need to provide internal support to allow this.
> I have an external edge interrupt wired and it occurs every 250usec. There
> are instances
> when the interrupt can occur while I am currently in my ISR.
>
> If another interrupt occurs while I am currently in my ISR I want my ISR to
> be called again
> so I can flag that the condition occurred then exit the re-entered ISR and
> continue executing
> the originally called ISR.
>
>
> I am using a board based off the AMCC 440EP Yosemite and a Denx Kit with
> 2.6.24 and Xenomai 2.4.2
> This something I did with previously with RT Linux. I have converted a
> large project from FSM RT Linux
> to Xenomai and everything is functioning except this last item.
>
>
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
next prev parent reply other threads:[~2008-08-02 7:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-11 16:09 [Xenomai-help] rt_task_sleep_until question Klaas Gadeyne
2008-04-12 13:11 ` Jan Kiszka
2008-04-12 15:32 ` klaas.gadeyne
2008-04-12 16:01 ` Gilles Chanteperdrix
2008-04-17 15:23 ` Klaas Gadeyne
2008-04-17 15:30 ` Gilles Chanteperdrix
2008-04-17 15:46 ` Gilles Chanteperdrix
2008-04-17 16:07 ` Philippe Gerum
2008-04-17 16:39 ` Gilles Chanteperdrix
2008-04-22 13:45 ` Klaas Gadeyne
2008-04-22 13:49 ` Philippe Gerum
2008-04-22 14:25 ` Klaas Gadeyne
2008-04-22 20:56 ` Philippe Gerum
2008-04-23 11:27 ` Klaas Gadeyne
2008-04-23 11:37 ` Philippe Gerum
2008-04-23 12:53 ` Bosko Radivojevic
2008-04-23 17:43 ` Philippe Gerum
2008-08-01 23:07 ` [Xenomai-help] Recurring Interrupts Henry Bausley
2008-08-02 7:38 ` Philippe Gerum [this message]
2008-08-02 12:24 ` Philippe Gerum
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=48940F10.9060506@domain.hid \
--to=rpm@xenomai.org \
--cc=hbausley@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.