开发者

Dereferencing ioremap addresses

开发者 https://www.devze.com 2023-02-09 11:55 出处:网络
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 addre

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消