Skip to contentSkip to conversation

trap exceptions in user

Xenomai-help Gabriele Moabiti 1 participant 1 message Oct 13, 2008

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines
Quoted 2 lines

I did't specify I have passed mem=xxx to kernel to take the upper 16MB I think the RTDM mapping works.

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 have tried fixed mmap mode and I have no luck.
Outside the mmap mapped memory exceptions are trapped with rthal_trap_catch. Inside the callback doesn't work... seems to dislike mapped memory...

Another question:
Is it right I can set rthal_trap_catch only in kernel rt/nrt task?

Gabriele

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