From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <52F4EFE5.2040000@xenomai.org> Date: Fri, 07 Feb 2014 15:38:29 +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> In-Reply-To: <52F4EE97.2070800@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 03:32 PM, Marcel van Mierlo wrote: > If I comment out q_send TRAP 8 dosent occur. If I pass NULL as data > words to q_send, TRAP 8 stops... and %CPU remains low....hmmm do I need > to ensure stack alignment somehow? The stack alignment is ensured by the compiler. Starting with ARM EABI, the stack is aligned on 8 bytes, so, if you do not use special tricks (like casting a char * pointer to a u_long *pointer, or using __attribute__((packed))), everything should be aligned properly. Could you show us the declaration of the buffer passed to q_send ? In fact, posting a self-contained, minimal example allowing to reproduce the problem would help. -- Gilles.