Re: Cache incoherencies [example code]

Philip Blundell (Philip.Blundell@pobox.com)
Mon, 30 Aug 1999 14:43:31 +0100


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

Depends on the architecture. On ARM you will be fine so long as you use
__ioremap directly rather than ioremap itself.

p.

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