* [Adeos-main] When do I need to add local_irq_disable_hw/local_irq_enable_hw in root domain?
@ 2008-04-01 10:28 Josh Zhao
2008-04-01 12:45 ` Philippe Gerum
0 siblings, 1 reply; 4+ messages in thread
From: Josh Zhao @ 2008-04-01 10:28 UTC (permalink / raw)
To: adeos-main
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
Hi ,
When do I need to add local_irq_disable_hw/local_irq_enable_hw in root
domain? I think every irq/event should not be disabled in root domain,but
why i have seen in some code ?
thanks!
[-- Attachment #2: Type: text/html, Size: 272 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Adeos-main] When do I need to add local_irq_disable_hw/local_irq_enable_hw in root domain?
2008-04-01 10:28 [Adeos-main] When do I need to add local_irq_disable_hw/local_irq_enable_hw in root domain? Josh Zhao
@ 2008-04-01 12:45 ` Philippe Gerum
2008-04-08 6:45 ` Josh Zhao
0 siblings, 1 reply; 4+ messages in thread
From: Philippe Gerum @ 2008-04-01 12:45 UTC (permalink / raw)
To: Josh Zhao; +Cc: adeos-main
Josh Zhao wrote:
> Hi ,
> When do I need to add local_irq_disable_hw/local_irq_enable_hw in
> root domain? I think every irq/event should not be disabled in root
> domain,but why i have seen in some code ?
Because some serialization still needs to be enforced, even for the root domain,
particularly for code that may have an impact on the pipeline state.
> thanks!
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Adeos-main mailing list
> Adeos-main@domain.hid
> https://mail.gna.org/listinfo/adeos-main
--
Philippe.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Adeos-main] When do I need to add local_irq_disable_hw/local_irq_enable_hw in root domain?
2008-04-01 12:45 ` Philippe Gerum
@ 2008-04-08 6:45 ` Josh Zhao
2008-04-08 7:00 ` Gilles Chanteperdrix
0 siblings, 1 reply; 4+ messages in thread
From: Josh Zhao @ 2008-04-08 6:45 UTC (permalink / raw)
To: rpm; +Cc: adeos-main
[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]
Thanks,Philippe Gerum
Well, I have another question:
1. Why I need take over the linux syscall ,I think that it is only
for linux domain,so it looks no necessary to take over them?
2. kernel/exit.c ipipe_exit_notify(tsk);
When a process exits, why adeos has to take over it ?
This questions are very simply, but I m a beginner on adeos.
thanks!
2008/4/1, Philippe Gerum <rpm@xenomai.org>:
>
> Josh Zhao wrote:
> > Hi ,
> > When do I need to add local_irq_disable_hw/local_irq_enable_hw in
> > root domain? I think every irq/event should not be disabled in root
> > domain,but why i have seen in some code ?
>
>
> Because some serialization still needs to be enforced, even for the root
> domain,
> particularly for code that may have an impact on the pipeline state.
>
> > thanks!
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Adeos-main mailing list
> > Adeos-main@domain.hid
> > https://mail.gna.org/listinfo/adeos-main
>
>
> --
>
> Philippe.
>
[-- Attachment #2: Type: text/html, Size: 1832 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Adeos-main] When do I need to add local_irq_disable_hw/local_irq_enable_hw in root domain?
2008-04-08 6:45 ` Josh Zhao
@ 2008-04-08 7:00 ` Gilles Chanteperdrix
0 siblings, 0 replies; 4+ messages in thread
From: Gilles Chanteperdrix @ 2008-04-08 7:00 UTC (permalink / raw)
To: Josh Zhao; +Cc: adeos-main, rpm
Josh Zhao wrote:
> Thanks,Philippe Gerum
> Well, I have another question:
> 1. Why I need take over the linux syscall ,I think that it is only
> for linux domain,so it looks no necessary to take over them?
This allows non root domain to use (part of) Linux syscall path. The
fact that Xenomai takes over Linux syscall path is what makes user-space
real-time possible.
> 2. kernel/exit.c ipipe_exit_notify(tsk);
> When a process exits, why adeos has to take over it ?
This allows non root domain to run per-process cleanups. Xenomai uses it
to destroy per-process objects and so gains a little comfort. You no
longer have to take care to intercept process termination and run
process cleanups, Xenomai does it automatically.
--
Gilles.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-04-08 7:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-01 10:28 [Adeos-main] When do I need to add local_irq_disable_hw/local_irq_enable_hw in root domain? Josh Zhao
2008-04-01 12:45 ` Philippe Gerum
2008-04-08 6:45 ` Josh Zhao
2008-04-08 7:00 ` Gilles Chanteperdrix
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.