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