Go to previous topic
Go to next topic
Last Post 07 Dec 2004 04:29 PM by  Anonymous
Problem with mmap() & noncached memory
 1 Replies
Author Messages
miriam@rapportincorporated.com
New Member
New Member
Posts:


--
24 Aug 2004 12:28 PM
    How do I memory map(mmap()) a region to user space as noncachable memory?

    The problem appears to be that the system has mapped the memory range as cacheable and caching
    needs to be disabled. I have written a device driver that exports a mmap() function that maps the
    appropriate region as follows-

    if (remap_page_range(vma->vm_start, offset, vma->vm_end - vma->vm_start, pgprot_noncached(vma->vm_page_prot)))
    return -EAGAIN;


    Any help would be greatly appreciated...
    Anonymous
    Posts:


    --
    07 Dec 2004 04:29 PM
    m,

    Please keep in mind that Logic's Linux port is meant as a starting point only. It is not what could be considered production ready. If you need assistance with certain driver or BSP work it might be good to contact productsales@logicpd.com to set up a contract to get some of this work done if it is still troubling you.

    Regards,

    Platform Support


    ---