On Mon, 28 Jul 2003, Jun Sun wrote: > > How about if I specify the following flags in my mmap routine just like what the pgprot_noncached micro did. > > pgprot_val(vma->vm_page_prot) &= ~_CACHE_MASK; > > pgprot_val(vma->vm_page_prot) |= _CACHE_UNCACHED; > > > > Will this have kernel make the mmap'd memory non-cacheable? Or is there a mmap non-cacheable patch? > > I think this might work. Did you try it? The performance will be bad > though as mmap() is used widely by userland. See mmap_mem() for how to select between cached and uncached mmap()ing cleanly. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available +