All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] root_thread_exit in pSOS skin
@ 2006-10-03 14:16 d p
  2006-10-04 13:55 ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: d p @ 2006-10-03 14:16 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

I'm trying to use Xenomai over a Linux machine, in particular I'm trying to
emulate a pSOS system by using the demo satch (executable satch_uvm). I see
that root_thread_exit is never called.

How I have to do to get root_thread_exit called? I'd like to use this
function to remove a pipe created in root_thread_init.

Regards

[-- Attachment #2: Type: text/html, Size: 343 bytes --]

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

* Re: [Xenomai-help] root_thread_exit in pSOS skin
  2006-10-03 14:16 [Xenomai-help] root_thread_exit in pSOS skin d p
@ 2006-10-04 13:55 ` Jan Kiszka
  2006-10-04 14:39   ` d p
  0 siblings, 1 reply; 4+ messages in thread
From: Jan Kiszka @ 2006-10-04 13:55 UTC (permalink / raw)
  To: d p; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 635 bytes --]

d p wrote:
> I'm trying to use Xenomai over a Linux machine, in particular I'm trying to
> emulate a pSOS system by using the demo satch (executable satch_uvm). I see
> that root_thread_exit is never called.
> 
> How I have to do to get root_thread_exit called? I'd like to use this
> function to remove a pipe created in root_thread_init.

root_thread_exit maps to __xeno_user_exit [1], and that should get
called by the UVM main function [2].

Jan


[1]http://www.rts.uni-hannover.de/xenomai/lxr/source/include/nucleus/types.h#L129
[2]http://www.rts.uni-hannover.de/xenomai/lxr/source/include/asm-uvm/system.h#L406


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Xenomai-help] root_thread_exit in pSOS skin
  2006-10-04 13:55 ` Jan Kiszka
@ 2006-10-04 14:39   ` d p
  2006-10-04 15:03     ` Jan Kiszka
  0 siblings, 1 reply; 4+ messages in thread
From: d p @ 2006-10-04 14:39 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 285 bytes --]

On 04/10/06, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>
> root_thread_exit maps to __xeno_user_exit [1], and that should get
> called by the UVM main function [2].


OK, but I  put a  xnprintf in root_thread_exit and I never saw this print. I
stop the emulation with CTRL+C.

Regards

[-- Attachment #2: Type: text/html, Size: 591 bytes --]

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

* Re: [Xenomai-help] root_thread_exit in pSOS skin
  2006-10-04 14:39   ` d p
@ 2006-10-04 15:03     ` Jan Kiszka
  0 siblings, 0 replies; 4+ messages in thread
From: Jan Kiszka @ 2006-10-04 15:03 UTC (permalink / raw)
  To: d p; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

d p wrote:
> On 04/10/06, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>>
>> root_thread_exit maps to __xeno_user_exit [1], and that should get
>> called by the UVM main function [2].
> 
> 
> OK, but I  put a  xnprintf in root_thread_exit and I never saw this
> print. I
> stop the emulation with CTRL+C.

Yeah, that correlates very well with the endless loop a few line above
in [2]...

In fact, I don't see how you should be able to install cleanup code this
way under the UVM. Maybe replacing the for loop with something like this
helps

while (uvm_thread_idle(&uvm_irqlock) >= 0)
	/* empty loop */;

but I'm leaving terra firma right now (never worked with the UVM).

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

end of thread, other threads:[~2006-10-04 15:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-03 14:16 [Xenomai-help] root_thread_exit in pSOS skin d p
2006-10-04 13:55 ` Jan Kiszka
2006-10-04 14:39   ` d p
2006-10-04 15:03     ` Jan Kiszka

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.