From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Doninelli Davide <Davide.Doninelli@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] ioremap domain
Date: Sat, 09 Apr 2011 10:23:32 +0200 [thread overview]
Message-ID: <4DA01784.3080201@domain.hid> (raw)
In-Reply-To: <68A9C7E0-33D0-4039-88AF-A1B62F1889BD@edu.hefr.ch>
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.
prev parent reply other threads:[~2011-04-09 8:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-09 7:52 [Xenomai-help] ioremap domain Doninelli Davide
2011-04-09 8:23 ` Gilles Chanteperdrix [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=4DA01784.3080201@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Davide.Doninelli@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.