From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4DFF5FEE.8060901@domain.hid> Date: Mon, 20 Jun 2011 16:57:50 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] mprotect in Xenomai List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Thalmeier Cc: xenomai@xenomai.org 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.