From: Philippe Gerum <rpm@xenomai.org>
To: "A. Nolson" <alohanono@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Virtual IRQ Numbers in powerpc?
Date: Sun, 25 Oct 2009 00:13:45 +0200 [thread overview]
Message-ID: <1256422425.2862.538.camel@domain.hid> (raw)
In-Reply-To: <4AE333E9.5040802@domain.hid>
On Sat, 2009-10-24 at 19:05 +0200, A. Nolson wrote:
> Hi,
>
> i have a PowerPC 405 based system using a 2.6.30 Xenomai patched kernel
Btw,
adeos-ipipe-2.6.30-powerpc-DENX-2.7-00: fine
adeos-ipipe-2.6.30.3-powerpc-DENX-2.7-01: BROKEN
adeos-ipipe-2.6.30.3-powerpc-DENX-2.7-02: fine
> and I want to manage some interrupts in userspace for some non-critical
> custom drivers. I have an OF device-tree where I indicate my HW
> interrupts (the ones I need to use are not shared with any already
> managed interrupt in the kernel). I have been trying to initialize an
> interrupt handler in userspace with rt_intr_create by using the real
> interrupt numbers indicated in the dts . The handler gets loaded but no
> interrupt shows up. I have seen that rt_intr_create indicates that the
> irq number is "architecture dependant", but I haven't been able to spot
> further explanations on this. I know that arch=powerpc use virtual
> interrupts and I am wondering if I first need to map the real interrupt
> in a virtual interrupt number before using it( like one would do in a
> normal linux kernel driver ).
>
> I am doing this:
>
> if( (err = rt_intr_create(&(dev->intr_desc), "GPIO IRQ", irqno,
> I_NOAUTOENA)) < 0 ){
> pdbg(DBG_WARN, "Cannot create interrupt for GPIO
> rt_intr_create=%i\n", err);
> return err;
> }
>
> rt_intr_enable (&(dev->intr_desc));
>
> if( (err = rt_task_spawn(&(dev->interrupt_task), "Int", 0, irq_prio,
> 0,fisr, (void*)&(dev->intr_desc))) < 0){
> pdbg(DBG_WARN, "Cannot Spawn ISR for GPIO. err = %d\n", err);
> return err;
> }
>
> What am I missing?
>
> Thanks!
>
> /Alfred
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2009-10-24 22:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-24 17:05 [Xenomai-help] Virtual IRQ Numbers in powerpc? A. Nolson
2009-10-24 17:37 ` Philippe Gerum
2009-10-24 18:42 ` A. Nolson
2009-10-24 22:07 ` Philippe Gerum
2009-10-26 15:18 ` [Xenomai-help] Supported Architecture? Matthias Frauendorf
2009-10-26 19:43 ` Pierre Ficheux
2009-10-24 22:13 ` Philippe Gerum [this message]
2009-11-02 9:54 ` [Xenomai-help] Virtual IRQ Numbers in powerpc? Richard Cochran
2009-11-02 20:00 ` 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=1256422425.2862.538.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=alohanono@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.