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

Re: Question about mmap()

To: Sugi <Nobukazu.Sugiyama@am.sony.com>
Subject: Re: Question about mmap()
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Wed, 5 Sep 2001 13:50:11 +0200 (MET DST)
Cc: "linux-mips@fnet.fr" <linux-mips@fnet.fr>
In-reply-to: <3B95240B.5C273EC4@am.sony.com>
Organization: Technical University of Gdansk
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        +

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