All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: "Li Yi (Adam)" <liyiadam@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>, Jan Kiszka <jan.kiszka@domain.hid>
Subject: Re: [Xenomai-help] Sychronize between Linux and Xenomai domain
Date: Fri, 14 Jul 2006 10:37:34 +0200	[thread overview]
Message-ID: <1152866254.5087.22.camel@domain.hid> (raw)
In-Reply-To: <4546494d0607102125w2817ccd1j746651214cac3a6d@domain.hid>

On Tue, 2006-07-11 at 12:25 +0800, Li Yi (Adam) wrote:
> Hi Jan,
> 
> Sometimes there is situation to  protect a  Non-real time task in
> kernel space NOT to be interrupted by Xenomai task.
> Is disabling HW interrupt the only way?

Or stalling the Xenomai stage in the interrupt pipeline. See
rthal_local_irq_* in asm-generic/hal.h. But at the very least, make sure
that no Linux rescheduling occurs during the critical section; this
includes disabling kernel preemption before stalling the Xenomai domain.

>  Can I stall Xenomai Domain from handling interrupt while let the
> Linux domain 
> handle interrupt normally?

No, this would make no sense. Interrupts are flowing down the Adeos
pipeline by domain priority order.

> 
> Thanks,
> 
> -Yi
> 
> 
> On 7/10/06, Jan Kiszka <jan.kiszka@domain.hid > wrote:
>         Li Yi (Adam) wrote:
>         > I searched the web and find these RTDM sample drivers
>         (Thanks for the 
>         > contributors):
>         >
>         > In Xenomai src tree: ksrc/drivers/16550A/16550A.c
>         
>         Also check the drivers/testing in recent Xenomai.
>         
>         > http://www.captain.at/xenomai-real-time-driver-example.php
>         >
>         http://www.rts.uni-hannover.de/rtnet/lxr/source/examples/xenomai/
>         > http://www.captain.at/xenomai-serial-port-example.php
>         
>         The last two are usage examples, not drivers. But RTnet is
>         indeed
>         another, more complex example, see these parts: 
>         
>         http://www.rts.uni-hannover.de/rtnet/lxr/source/stack/packet/af_packet.c
>         http://www.rts.uni-hannover.de/rtnet/lxr/source/stack/ipv4
>         http://www.rts.uni-hannover.de/rtnet/lxr/source/stack/rtmac/tdma/tdma_dev.c
>         
>         >
>         > Just wondering are there more samples?
>         
>         http://svn.berlios.de/viewcvs/rack/trunk/rack/main/tims/driver
>         http://www.rts.uni-hannover.de/rtaddon
>         http://developer.berlios.de/projects/usb4rt
>         http://developer.berlios.de/projects/rtfirewire (only as API
>         user, not
>             as RTDM device provider)
>         
>         And a full CAN stack is on the way, may show up on the list
>         this week.
>         Hope I'm not forgetting anything right now.
>         
>         Jan
>         
>         
>         
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
-- 
Philippe.




      parent reply	other threads:[~2006-07-14  8:37 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-10  6:16 [Xenomai-help] Sychronize between Linux and Xenomai domain Li Yi (Adam)
2006-07-10  7:11 ` Jan Kiszka
2006-07-10  8:48   ` Li Yi (Adam)
2006-07-10  9:07     ` Jan Kiszka
2006-07-10  9:31       ` Li Yi (Adam)
2006-07-10  9:44         ` Jan Kiszka
2006-07-11  4:25           ` Li Yi (Adam)
2006-07-11  6:14             ` Jan Kiszka
2006-07-11  6:48               ` Li Yi (Adam)
2006-07-11  6:53                 ` Li Yi (Adam)
2006-07-11  7:29                   ` Jan Kiszka
2006-07-11  7:43                     ` Li Yi (Adam)
2006-07-11  7:47                       ` Jan Kiszka
2006-07-12  1:51                       ` Li Yi (Adam)
2006-07-12  6:34                         ` Jan Kiszka
2006-07-12  7:34                           ` Li Yi (Adam)
2006-07-12  7:51                             ` Jan Kiszka
2006-07-12  8:24                               ` Li Yi (Adam)
2006-07-12  8:51                                 ` Jan Kiszka
2006-07-14  8:37             ` Philippe Gerum [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=1152866254.5087.22.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=jan.kiszka@domain.hid \
    --cc=liyiadam@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.