From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <49182AA7.6000800@domain.hid> Date: Mon, 10 Nov 2008 13:35:51 +0100 From: Wolfgang Grandegger MIME-Version: 1.0 References: <491805AE.1060809@domain.hid> <52e18582a48da6c08ed88bbce325aed8.squirrel@domain.hid> <491829F9.2050305@domain.hid> In-Reply-To: <491829F9.2050305@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: Gilles Chanteperdrix Cc: xenomai-help Wolfgang Grandegger wrote: > Gilles Chanteperdrix wrote: >> 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. >> On ARM, we normally map the heaps uncacheable, this should not be >> necessary on ARMv6, but I am afraid we then get the fault on first access. > > Is each cache-line of the heap not touched automatically when the heap > gets created? I thought it's necessary for other archs as well. s/cache-line/page/ Wolfgang.