All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] rtdm_task_init call freezes the system
@ 2014-01-04  0:48 Nima Nourozi
  2014-01-04  9:06 ` Philippe Gerum
  0 siblings, 1 reply; 34+ messages in thread
From: Nima Nourozi @ 2014-01-04  0:48 UTC (permalink / raw)
  To: xenomai

I'm writing an SPI device driver using rtdm skin. If I call rtdm_task_init
from anywhere in the code the system freezes indefinitely with no errors
thrown.

Here is how I call the function in __init function of my module:
retval = rtdm_task_init(&heartbeat_task, "spi_transfer", xx_start_transfer,
NULL, 99, 100000000);

I'm using xenomai 2.6.1 patched with
adeos-ipipe-2.6.38.8-arm-1.18-09.patch<http://download.gna.org/adeos/patches/v2.6/arm/adeos-ipipe-2.6.38.8-arm-1.18-09.patch>
Linux 2.6.38.8 and my compiler is Sourcery G++ Lite 2010q1-202

The rtdm_timer_start function works perfectly so the problem is only with
the task function.

I've been trying different kernel versions but I get the same result.

I'm attaching the .config file in case there is a setting that's causing
this issue.

Thanks in advance,

Nima
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 36797 bytes
Desc: not available
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140103/ef5b53d0/attachment.obj>

^ permalink raw reply	[flat|nested] 34+ messages in thread
* Re: [Xenomai] rtdm_task_init call freezes the system
@ 2014-01-04  0:54 Nima Nourozi
  0 siblings, 0 replies; 34+ messages in thread
From: Nima Nourozi @ 2014-01-04  0:54 UTC (permalink / raw)
  To: xenomai

I forgot to add that my chip is AT91SAM9260

^ permalink raw reply	[flat|nested] 34+ messages in thread

end of thread, other threads:[~2014-01-09  9:56 UTC | newest]

Thread overview: 34+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-04  0:48 [Xenomai] rtdm_task_init call freezes the system Nima Nourozi
2014-01-04  9:06 ` Philippe Gerum
2014-01-04 18:18   ` Gilles Chanteperdrix
2014-01-04 19:27     ` Philippe Gerum
2014-01-04 20:29       ` Nima Nourozi
2014-01-04 21:24         ` Gilles Chanteperdrix
2014-01-04 21:31           ` Nima Nourozi
2014-01-04 23:01             ` Gilles Chanteperdrix
2014-01-05  0:31               ` Nima Nourozi
2014-01-05 13:09                 ` Gilles Chanteperdrix
2014-01-04 22:57         ` Philippe Gerum
2014-01-05  0:25           ` Nima Nourozi
2014-01-05 12:02             ` Philippe Gerum
2014-01-05 19:28               ` Gilles Chanteperdrix
2014-01-06  7:58                 ` Philippe Gerum
2014-01-06 19:10                   ` Nima Nourozi
2014-01-06 20:00                     ` Gilles Chanteperdrix
2014-01-06 21:25                       ` Nima Nourozi
2014-01-06 21:25                         ` Gilles Chanteperdrix
2014-01-06 21:40                           ` Nima Nourozi
2014-01-06 21:42                             ` Gilles Chanteperdrix
2014-01-06 21:45                     ` Gilles Chanteperdrix
2014-01-06 21:52                       ` Nima Nourozi
2014-01-06 21:54                         ` Gilles Chanteperdrix
2014-01-06 22:11                           ` Gilles Chanteperdrix
2014-01-06 22:47                             ` Nima Nourozi
2014-01-06 22:48                               ` Gilles Chanteperdrix
2014-01-09  2:51                                 ` Nima Nourozi
2014-01-09  8:33                                   ` Gilles Chanteperdrix
2014-01-09  9:21                                   ` Gilles Chanteperdrix
2014-01-09  9:56                                     ` Gilles Chanteperdrix
2014-01-06 22:46                           ` Nima Nourozi
2014-01-05 20:54               ` Nima Nourozi
  -- strict thread matches above, loose matches on Subject: below --
2014-01-04  0:54 Nima Nourozi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.