lkml.org 
[lkml]   [1999]   [Aug]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Cache incoherencies [example code]
On Mon, Aug 30, 1999 at 02:43:19PM +0200, Benjamin Herrenschmidt wrote:

> What happens if I simply try to create an additional mapping for an
> existing page ? Basically, what happens if I use ioremap on the physical
> location of a kmalloc'ed page ?
>
> Of course, I will end up having two virtual mappings to the same page,
> but if I make sure to only actually use the uncachable one, will there be
> a problem ? Would something prevent ioremap from creating a mapping for a
> physical page in the SDRAM range ?

ioremap is not intended to be used for that purpose. It may work for
some systems and fail on others. So you'll have to supply a new function
for that purpose which on some architectures may just be the same as
ioremap.

Ralf

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site