Message-ID: <52F532C6.9090005@xenomai.org> Date: Fri, 07 Feb 2014 20:23:50 +0100 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <52F3B77F.3020405@marel.com> <52F3C5DD.8010208@xenomai.org> <52F3DBDB.4060805@xenomai.org> <52F49F07.9040801@xenomai.org> <52F4E084.3020809@marel.com> <52F4E865.5000200@xenomai.org> <52F4EE97.2070800@marel.com> <52F4EFE5.2040000@xenomai.org> <52F4F698.7030900@marel.com> <52F4F768.2060808@xenomai.org> <52F4FA3A.1030003@marel.com> In-Reply-To: <52F4FA3A.1030003@marel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai] High CPU load using q_send under pSOS skin List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel van Mierlo Cc: xenomai@xenomai.org On 02/07/2014 04:22 PM, Marcel van Mierlo wrote: > > On 07/02/14 15:10, Gilles Chanteperdrix wrote: >> On 02/07/2014 04:07 PM, Marcel van Mierlo wrote: >>> TASK cio_watchdog_kick(void) >>> { >>> u_long cantmsg[4]; >> >> This one should be properly aligned, what about the buffer you use for >> q_recv? >> >> > Hmmm, again, created on the stack. Here is the code for task function > which invokes q_recv. Will put together a self-contained example. It probably means that the unaligned access happens in kernel-space. What version of gcc are you using? -- Gilles.