[Xenomai-core] rtdm_iomap_to_user() with PowerPC

2007-09-06 Thread Markus Osterried (BA/EDD)
Hello, I want to use rtdm_iomap_to_user() to map our device registers to user space. But this doesn't work, our application just crashes when I read from the mapped registers. When I insert the line vma-vm_page_prot = phys_mem_access_prot(filp, paddrPAGE_SHIFT, size, vma-vm_page_prot);

[Xenomai-core] RTDM timeout value

2007-08-29 Thread Markus Osterried (BA/EDD)
Hi, it seems that in the RTDM API, all the timeout functions which use nanosecs_rel_t have a strange behaviour. The timeout in nanoseconds is converted to ticks and the number of ticks is rounded down. So when we want to wait e.g. 50 nanoseconds and the timertick is 1 ms, xnpod_ns2ticks()