Gilles Chanteperdrix wrote:
>> if ((vaddr >= VMALLOC_START) && (vaddr < VMALLOC_END))
>>
>> returns false, and the memory is handled as if it were kmalloced memory.
> 
> Replacing this test with if (!virt_addr_valid(vaddr)) should do the
> trick. Remains to see whethe this macro existed in older versions.
> 

No, it will not work. vmalloc_to_page will fail for the same reason. So,
we can not use rtdm_mmap_to_user with virtual address returned by
dma_alloc_coherent, unless we start writing a page walk table like
vmalloc_to_page but which does not test that the give address is in the
vmalloc range.

-- 
                                                                Gilles.

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

Reply via email to