All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Michael Thalmeier <michael@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] mprotect in Xenomai
Date: Mon, 20 Jun 2011 16:57:50 +0200	[thread overview]
Message-ID: <4DFF5FEE.8060901@domain.hid> (raw)
In-Reply-To: <f801f3950e5f79192ebc8824bfd54545@domain.hid>

On 06/20/2011 04:14 PM, Michael Thalmeier wrote:
>  Hello !
> 
>  We have a xenomai application that uses mprotect to change write 
>  protection in order to set and clear breakpoint codes.
>  This works quite well (the code invoking mprotect switches to linux, 
>  but thats ok).
>  The problem is that from time to time the realtime task executing code 
>  in the area changed with mprotect also switches domains to handle a page 
>  fault.
>  Is there some functionality in xenomai to change memory protection not 
>  using mprotect ?
>  Attached you find a short sample that can reproduce this problem.

I am afraid this is platform dependent, on what architecture do you get
this behaviour?

-- 
					    Gilles.


  reply	other threads:[~2011-06-20 14:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-20 14:14 [Xenomai-help] mprotect in Xenomai Michael Thalmeier
2011-06-20 14:57 ` Gilles Chanteperdrix [this message]
2011-06-20 15:29   ` Johann Obermayr
2011-06-21  9:08   ` Michael Thalmeier
2011-06-21 10:41     ` Gilles Chanteperdrix
2011-06-21 22:17     ` Gilles Chanteperdrix
2011-06-22  7:08       ` Michael Thalmeier

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=4DFF5FEE.8060901@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=michael@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.