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

Re: Question about mmap()

To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Subject: Re: Question about mmap()
From: Sugi <Nobukazu.Sugiyama@am.sony.com>
Date: Wed, 05 Sep 2001 14:15:26 -0700
Cc: "linux-mips@fnet.fr" <linux-mips@fnet.fr>
Organization: Sony Electronics
References: <Pine.GSO.3.96.1010905134553.7702A-100000@delta.ds2.pg.gda.pl>
Thank for your help.

I added the following line before calling remap_page_range();

  vma->vma_page_range_prot.pgprot = (vma->vm_page_prot.pgprot &
                               ~_CACHE_MASK) | _CACHE_UNCACHED;

And, now it works well.

Thanks a lot.

Sugi

"Maciej W. Rozycki" wrote:
> 
> On Tue, 4 Sep 2001, Sugi wrote:
> 
> > Could you tell me how to get a non_cached address?
> 
>  See pgprot_noncached() in drivers/char/mem.c and how that's used for
> mmap()ping /dev/mem.  Note that pgprot_noncached() should probably moved
> to include/asm/pgtable.h as the comment suggests, so you'd better move the
> relevant (MIPS) part there instead of duplicating the code.  This is
> already done for ia64.
> 
> --
> +  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
> +--------------------------------------------------------------+
> +        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

-- 

    **********************************************
         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>