From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <491C6A95.9000802@domain.hid> Date: Thu, 13 Nov 2008 18:57:41 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <491805AE.1060809@domain.hid> In-Reply-To: <491805AE.1060809@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Mode switch when using RT heap on ARM List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wolfgang Grandegger Cc: xenomai-help Wolfgang Grandegger wrote: > Hello, > > I realized that accessing memory allocated with rt_heap_alloc() causes > mode switches on ARM i.mx31. The attached patch provides a demo program > to demonstrate the problem, which actually does *not* show up on my > PowerPC TQM5200 board. Ok. I ran your test on an ARMv5 using an old version of Xenomai, and I only get a fault on first write to the heap, being either cached or non cached. I will now run the tests on AT91RM9200 with a more recent version of xenomai to confirm that we get the same effect, but if we do, this means that we are facing an armv6 specific issue and that for a workaround, we need to understand armv6 memory management. -- Gilles.