All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] ioremap domain
@ 2011-04-09  7:52 Doninelli Davide
  2011-04-09  8:23 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 2+ messages in thread
From: Doninelli Davide @ 2011-04-09  7:52 UTC (permalink / raw)
  To: xenomai@xenomai.org

Hi,
ioremap and related function like readw/l or writew/l are executed in which domain?

Thanks in advance 
Davide

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Xenomai-help] ioremap domain
  2011-04-09  7:52 [Xenomai-help] ioremap domain Doninelli Davide
@ 2011-04-09  8:23 ` Gilles Chanteperdrix
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2011-04-09  8:23 UTC (permalink / raw)
  To: Doninelli Davide; +Cc: xenomai@xenomai.org

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-04-09  8:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-09  7:52 [Xenomai-help] ioremap domain Doninelli Davide
2011-04-09  8:23 ` 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.