简体   繁体   English

将 ioport 形式的硬件映射到 vDSO 功能

[英]Map ioport form hardware to vDSO function

I am using SAMA5d2 CPU with Linux, and want to have access to ioport from vdso function.我在 Linux 中使用 SAMA5d2 CPU,并希望通过 vdso 函数访问 ioport。 How shoul I map ioport to userspace memory to get access to ioport in vdso function which calls from userspace?我应该如何将 ioport 映射到用户空间内存以访问从用户空间调用的 vdso 函数中的 ioport? Actualy I want to implement getting of timer cycles in tcb_clksrc timer.实际上我想在 tcb_clksrc 定时器中实现定时器周期的获取。 The kernel have implementation only for arch_arm_timer clocksource, and I want to make implementation for tcb_clksrc timer to use it in my SAMA内核只有 arch_arm_timer 时钟源的实现,我想为 tcb_clksrc 定时器实现,以便在我的 SAMA 中使用它

I found solution in evl project In this project new clocksource USER_MIMO is implemented, and any clock driver can register in it as a hardware clock.我在evl 项目中找到了解决方案在这个项目中实现了新的 clocksource USER_MIMO,任何时钟驱动程序都可以在其中注册为硬件时钟。 I ported tihs interface to my kernel and it's works file我将 tihs 接口移植到我的内核,它是工作文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM