Skip to contentSkip to conversation

trap exceptions in user

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

lore
Share & tools
lore
#0 lore raw
Quoted 6 lines

Yes, but I still think this is useless. If your user-space code expects to be running from 1MB to 16MB, it expects this for virtual addresses, not for physical addresses. So, I really think you should mmap the 1MB to 16MB region by passing the start address to mmap with the MMAP_FIXED flag.

I know my way to solve this problem is very strange but there are some reasons.
It is done for compatibility reasons (DMA and a strange architecture with custom gdt entries needed by the asm blob...) In this application I don't need contiguous physical addresses so I will try the mmap fixed way.
I didn't only want to fork the driver but it is not a big problem...

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? :)

Gabriele

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

#1 lore raw
Quoted 5 lines · Gabriele Moabiti
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.

Signature · 1 line
					    Gilles.
#2 lore raw
In reply to Gabriele Moabiti
Quoted 15 lines · Gabriele Moabiti
Quoted 6 lines

Yes, but I still think this is useless. If your user-space code expects to be running from 1MB to 16MB, it expects this for virtual addresses, not for physical addresses. So, I really think you should mmap the 1MB to 16MB region by passing the start address to mmap with the MMAP_FIXED flag.

I know my way to solve this problem is very strange but there are some reasons.
It is done for compatibility reasons (DMA and a strange architecture with custom gdt entries needed by the asm blob...)
In this application I don't need contiguous physical addresses so I will try the mmap fixed way.
I didn't only want to fork the driver but it is not a big problem...

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? :)

You may want to have a look at the I-pipe tracer:

http://www.xenomai.org/index.php/I-pipe:Tracer

Quoted 15 lines

Gabriele

------------------------------------------------------------------------
Scopri il Blog di Yahoo! Mail
<http://us.rd.yahoo.com/mail/it/taglines/yahoo/ymail/SIG=11djrg460/**http%3A%2F%2Fwww.ymailblogit.com%2Fblog%2F>:
trucchi, novità, consigli... e scrivi la tua opinione!

------------------------------------------------------------------------

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.