Skip to contentSkip to conversation

trap exceptions in user

Xenomai-help Gabriele Moabiti 3 participants 3 messages Oct 14, 2008

lore
Share & tools
lore
#0 lore raw
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

You should trace the exception path in the I-pipe patch to find the
point where your exception handling callback is not called.

will it be a large print work or there are another ways to do that? :)

Yes, a small printk works. There is not that much code involved.

I have found the problem.
I used a printf some instructions before the call to the asm blob. Once removed seems to work as expected.
I've seen also that writing

      printf(expr); \
      rt_task_set_mode(0, T_PRIMARY, 0);

it works (I think printf does a switch to secondary domain).
Now I should use a user-space-no-problem print like rtdm_printk in kernel space. The docs says rtdm_in_rt_context and rtdm_printk are avalaible but in the rtdm.h there is no trace of them and I can't use rtdm_driver.h 'cause it's kernel only...

Gabriele

Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog

#1 lore raw
Quoted 10 lines · Gabriele Moabiti
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

You should trace the exception path in the I-pipe patch to find the
point where your exception handling callback is not called.

will it be a large print work or there are another ways to do that? :)

Yes, a small printk works. There is not that much code involved.

I have found the problem.
I used a printf some instructions before the call to the asm blob. Once removed seems to work as expected.
I've seen also that writing

Quoted 6 lines
      printf(expr); \
      rt_task_set_mode(0, T_PRIMARY, 0);

it works (I think printf does a switch to secondary domain).
Now I should use a user-space-no-problem print like rtdm_printk in kernel space. The docs says rtdm_in_rt_context and rtdm_printk are avalaible but in the rtdm.h there is no trace of them and I can't use rtdm_driver.h 'cause it's kernel only...

rtdm_printk (read 'k' as 'kernel') is for driver development in kernel space only.

What you are looking for is rt_printf from the rtdk lib. See related example (examples/native/rtprint.c).

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
#2 lore raw
Quoted 17 lines · Jan Kiszka
Quoted 9 lines · Gabriele Moabiti
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

You should trace the exception path in the I-pipe patch to find the
point where your exception handling callback is not called.

will it be a large print work or there are another ways to do that? :)

Yes, a small printk works. There is not that much code involved.

I have found the problem.
I used a printf some instructions before the call to the asm blob. Once removed seems to work as expected.
I've seen also that writing

Quoted 6 lines
      printf(expr); \
      rt_task_set_mode(0, T_PRIMARY, 0);

it works (I think printf does a switch to secondary domain).
Now I should use a user-space-no-problem print like rtdm_printk in kernel space. The docs says rtdm_in_rt_context and rtdm_printk are avalaible but in the rtdm.h there is no trace of them and I can't use rtdm_driver.h 'cause it's kernel only...

Quoted 5 lines

rtdm_printk (read 'k' as 'kernel') is for driver development in kernel space only.

What you are looking for is rt_printf from the rtdk lib. See related example (examples/native/rtprint.c).

I think it would be nice if we had some doxygen documentation for the rtdk lib. This way, we could point users to this documentation.

Signature · 1 line
                                                 Gilles.