Skip to contentSkip to conversation

When do I need to add local_irq_disable_hw/local_irq_enable_hw in root domain?

Adeos-main Josh Zhao 3 participants 4 messages Apr 1, 2008 – Apr 8, 2008

lore
Share & tools
lore

Josh Zhao

author
#0 lore raw

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!

#1 lore raw
Quoted 4 lines · Josh Zhao

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.

Quoted 10 lines

thanks!

------------------------------------------------------------------------

_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Signature · 1 line
Philippe.
author
#2 lore raw

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 <[email protected]>:

Quoted 28 lines
Quoted 4 lines · Josh Zhao

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.

Quoted 10 lines

thanks!

------------------------------------------------------------------------

_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

--

Philippe.

#3 lore raw
Quoted 4 lines · Josh Zhao

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.

Quoted 2 lines

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.

Signature · 1 line
					    Gilles.