[Xenomai-help] Problem of thread creation with Xenomai Posix 2

2008-02-15 Thread Fabien MAHOT
OK, thank you. I wrote a new program in which there is no call to my function Console. There is just calls to printf at the end of the program. Thus, we can be sure that the problem comes from the pthread_create call. New program : #include #include #include #include #include #include #de

Re: [Xenomai-help] Problem of thread creation with Xenomai Posix 2

2008-02-15 Thread Gilles Chanteperdrix
On Fri, Feb 15, 2008 at 9:10 AM, Fabien MAHOT > OK, we can see that there is the same problem. T1 thread prempts Main > Thread during the pthread_create of T2 with Xenomai and not with Linux > standard. I would like to know why. > > I don't that there is a difference beetween the posix Linux pt

Re: [Xenomai-help] Problem of thread creation with Xenomai Posix 2

2008-02-15 Thread Gilles Chanteperdrix
On Fri, Feb 15, 2008 at 9:10 AM, Fabien MAHOT <[EMAIL PROTECTED]> wrote: > OK, we can see that there is the same problem. T1 thread prempts Main > Thread during the pthread_create of T2 with Xenomai and not with Linux > standard. I would like to know why. > > I don't that there is a difference

Re: [Xenomai-help] Why Xenomai kill my process?

2008-02-15 Thread Salvatore De Astis
Hi at all, I'am sure that the same code run fine with Xenomai-2.1.1, kernel linux-2.6.15-ipipe-1.2-15. Why there are problems now? I want underline my purpose: my tasks should be exit in asyncronous way executing costom exit routine. How can I do this in Xenomai? I've considered the use of rt_add_h

Re: [Xenomai-help] Why Xenomai kill my process?

2008-02-15 Thread Gilles Chanteperdrix
On Fri, Feb 15, 2008 at 10:45 AM, Salvatore De Astis <[EMAIL PROTECTED]> wrote: > > > > > Hi at all, > I'am sure that the same code run fine with Xenomai-2.1.1, kernel > linux-2.6.15-ipipe-1.2-15. > Why there are problems now? Because now, xnpod_delete_thread sends a SIGKILL to the whole process

Re: [Xenomai-help] Why Xenomai kill my process?

2008-02-15 Thread Salvatore De Astis
2008/2/15, Gilles Chanteperdrix <[EMAIL PROTECTED]>: > > On Fri, Feb 15, 2008 at 10:45 AM, Salvatore De Astis > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > Hi at all, > > I'am sure that the same code run fine with Xenomai-2.1.1, kernel > > linux-2.6.15-ipipe-1.2-15. > > Why there are proble

Re: [Xenomai-help] Why Xenomai kill my process?

2008-02-15 Thread Gilles Chanteperdrix
On Fri, Feb 15, 2008 at 11:15 AM, Salvatore De Astis <[EMAIL PROTECTED]> wrote: > > > 2008/2/15, Gilles Chanteperdrix <[EMAIL PROTECTED]>: > > On Fri, Feb 15, 2008 at 10:45 AM, Salvatore De Astis > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > Hi at all, > > > I'am sure that t

Re: [Xenomai-help] Why Xenomai kill my process?

2008-02-15 Thread Gilles Chanteperdrix
On Fri, Feb 15, 2008 at 11:52 AM, Salvatore De Astis <[EMAIL PROTECTED]> wrote: > The loop which waits for a flag has a collateral effect: if my thread block > itself in its main routine how can I kill it in asyncronous mode? Use rt_task_unblock/rt_task_resume to unblock it, and check either -EINT

Re: [Xenomai-help] Why Xenomai kill my process?

2008-02-15 Thread Salvatore De Astis
The loop which waits for a flag has a collateral effect: if my thread block itself in its main routine how can I kill it in asyncronous mode? 2008/2/15, Gilles Chanteperdrix <[EMAIL PROTECTED]>: > > On Fri, Feb 15, 2008 at 11:15 AM, Salvatore De Astis > > <[EMAIL PROTECTED]> wrote: > > > > > > 200

[Xenomai-help] Error while porting xenomai to power pc 750Cxe based SBC

2008-02-15 Thread rakesh bk
Hello Everyone I am new to Xenomai , I have ported linux-2.6.14 to our custom board based on IBM750Cxe Iam unable to boot my kernel cross compiled with eldk-3.0with enabled xenomai support.If i remove xenomai and ipipe support the kernel boots correctly , but if i enable i get the fol

Re: [Xenomai-help] Why Xenomai kill my process?

2008-02-15 Thread Gilles Chanteperdrix
On Fri, Feb 15, 2008 at 11:52 AM, Salvatore De Astis <[EMAIL PROTECTED]> wrote: > The loop which waits for a flag has a collateral effect: if my thread block > itself in its main routine how can I kill it in asyncronous mode? Another solution would be to use pthread_cancel(). -- Gilles Chantepe

Re: [Xenomai-help] Error while porting xenomai to power pc 750Cxe based SBC

2008-02-15 Thread Gilles Chanteperdrix
On Fri, Feb 15, 2008 at 1:55 PM, rakesh bk <[EMAIL PROTECTED]> wrote: > Disable CONFIG_ALTIVEC in the kernel configuration. Do this. -- Gilles Chanteperdrix ___ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xen

Re: [Xenomai-help] Error while porting xenomai to power pc 750Cxe based SBC

2008-02-15 Thread Wolfgang Grandegger
Hello, rakesh bk wrote: > Hello Everyone > > I am new to Xenomai , I have ported linux-2.6.14 to our custom board based >on IBM750Cxe Iam unable to boot my kernel cross compiled with > eldk-3.0 with >enabled xenomai support.If i remove xenomai and ipipe support the > kernel >boots

Re: [Xenomai-help] Why Xenomai kill my process?

2008-02-15 Thread Salvatore De Astis
Thanks Gilles, but I am new to Xenomai so can you give me more details? 2008/2/15, Gilles Chanteperdrix <[EMAIL PROTECTED]>: > > On Fri, Feb 15, 2008 at 11:52 AM, Salvatore De Astis > > <[EMAIL PROTECTED]> wrote: > > > The loop which waits for a flag has a collateral effect: if my thread > block >

Re: [Xenomai-help] Why Xenomai kill my process?

2008-02-15 Thread Gilles Chanteperdrix
On Fri, Feb 15, 2008 at 2:33 PM, Salvatore De Astis <[EMAIL PROTECTED]> wrote: > Thanks Gilles, > but I am new to Xenomai so can you give me more details? pthread_cancel is not related to Xenomai, it is the posix way of killing threads while having them execute a custom cleanup routine. When pthr