> Xenomai uses rthal_trap_catch, so, you can use Xenomai code as an example.

Named
KD: kernel driver (ring 0).
UD: user space task (ring 3).

- KD reserve 16 MB  of memory (note: virtual and physical contiguous)

- I use rthal_trap_catch to customize exceptions (redirected to "custom_except" 
function)
  The "custom_except" function print the number of exception and recall the 
xenomai standard one.

- KD has an rtdm interface to map the 16 MB memory on user space with 
rtdm_iomap_to_user.

- UD starts and It maps with the rtdm (rtdm_iomap_to_user)

- UD copy a binary asm x86 test fpu (some instructions to generate exceptions 
for tests) in the 16 MB memory mapped

- UD start the real time task

Now here is a the problem.
If I invoke an exception (int 3, floating point exception and so on) outside 
the 16 MB mapped memory "custom_except" is called ok.
If the same code is invoked into the 16 MB mapped memory the program crash (and 
this is ok) reporting the description of the exception in the terminal (also 
this is ok) but "custom_except" is not called!

Is there something wrong using the mapped memory in this mode?

NOTE:
I am using xenomai 2.4.0rc1 with kernel 2.6.23


      Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to