The address returned by ioremap is not a virtual address, it is a cookie
which readb/w/l etc. take as arguments.
E.g. on sparc64, ioremap returns you the physical address (ie. ioremap just
returns first argument and does nothing else) and readb and the like use
instructions to bypass caches which take that physical address (so that it
does not use any TLB entries).
Cheers,
Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.18 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________
-
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/