From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <48940F10.9060506@domain.hid> Date: Sat, 02 Aug 2008 09:38:56 +0200 From: Philippe Gerum MIME-Version: 1.0 References: <4800B4FA.1050309@domain.hid><50879.62.235.129.158.1208014366.squirrel@domain.hid><18432.56533.343662.272421@domain.hid><2ff1a98a0804170830v3b2fc392lf320f05a8c7f4e8d@domain.hid><2ff1a98a0804170846p2dddbea5k3b69dbbc57fb6761@domain.hid><480775C4.2060302@domain.hid> <480DECDA.3070204@domain.hid> <34db01c8f42b$57a4d350$0109220a@domain.hid> In-Reply-To: <34db01c8f42b$57a4d350$0109220a@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Recurring Interrupts Reply-To: rpm@xenomai.org List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Henry Bausley Cc: xenomai@xenomai.org 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.