Dereferencing ioremap addresses
In the Linux kernel, why is it not advisable to dereference the kernel linear addresses obtained by mapping I/O physical addresses using ioremap开发者_如何学运维 ? Why should those mapped linear addresses be dereferenced using functions like readl/writel ?
Some architectures require special instructions to be used to access the IO ports, for example to bypass the cache.
精彩评论