Doninelli Davide wrote:
> Hi,
> ioremap and related function like readw/l or writew/l are executed in which
> domain?
The notion of "service X is executed in domain Y", only applies to
user-space services, because such services go through syscalls, and
Xenomai is able to switch automatically the calling thread domain.
For kernel-space services, what matter are the contexts from which
calling the function is valid. By default, you should consider that all
Linux services can only be called from Linux domain. After all, Linux
services were not written with the Xenomai kernel in mind.
This applies to ioremap.
There are, however, some exceptions:
- some services are modified to work in non-Linux domain, this is the
case of printk, or the spinlock services (but only for ipipe spinlocks).
- some services do not rely on the integrity of any data in the Linux
kernel, these ones are naturally safe to be called from Xenomai domain
even though they were not modified in any way. memcpy is an example of
such service on most architectures, and so are readl and writel.
--
Gilles.
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help