linux-mips-fnet
[Top] [All Lists]

Question about mmap()

To: "linux-mips@fnet.fr" <linux-mips@fnet.fr>
Subject: Question about mmap()
From: Sugi <Nobukazu.Sugiyama@am.sony.com>
Date: Tue, 04 Sep 2001 11:57:15 -0700
Organization: Sony Electronics
Hi,

I have a trouble with mmap() in our driver on DDB5477
which use VR5432.  We need to call remap_page_range()
with a non_cached address in mmap().  But it seems to 
be a cached address, because, when user process get 
an address using mmap() and access that address,
that area was cached.
Could you tell me how to get a non_cached address?
# In case of PC arch, it seems OK.

Best Regards,

Sugi

----

static int dev_mmap(struct file *file, struct vm_area_start *vma)
{
 ....
 remap_page_range(vma->vm_start, 
                  ((unsigned long)p_my_driverData->base_address),
                  MY_DRIVER_REGISTER_SIZE, vma->vm_page_prot);
 ....
}


-- 

    **********************************************
         Nobukazu Sugiyama
         DNC. ATC. Sony Electronics Inc.
         tel;858-942-1358   fax;858-942-9000
         mailto:Nobukazu.Sugiyama@am.sony.com
    **********************************************

<Prev in Thread] Current Thread [Next in Thread>