如何判断操作系统,中断处理程序和IRQ5(用于BIOS ACPI设备)是否相关? [英] How to tell the os ,the interrupt handlers and IRQ5(be used for the BIOS ACPI Device ) is associated?

查看:470
本文介绍了如何判断操作系统,中断处理程序和IRQ5(用于BIOS ACPI设备)是否相关?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新我的问题:我在ACPI中定义了一个设备,这个设备是非PNP设备,只使用IRQ5,因为我在BIOS中为此设备保留了IRQ5。现在我想编写一个驱动程序(操作系统:Windows XP) ),当底层硬件触发IRQ5时,操作系统可以调用驱动程序中的中断处理程序。

问题是如何告诉操作系统,中断处理程序和IRQ5(用于BIOS) ACPI设备)是关联的?

解决方案

我不想成为一个说话的人,但你有很多机会失败。



你想写一个直接处理硬件的驱动程序,这涉及 Ring 0 编程,这不适合胆小的人,也不适合初学者。通常情况下,只有经过全面培训的具有特定技能的程序员才会对第0环进行操作。



一个问题是操作系统已经有处理硬件的驱动程序而你的驱动程序必须更换他们。



整个印象是你从错误的方向解决问题,你的解决方案是最困难的方式。



我认为还有另一种方法(更容易)解决问题但我们需要有关问题的详细信息才能提出替代解决方案。


参见 https://msdn.microsoft.com/en-us/windows/hardware/hh852365.aspx [ ^ ]。

Update my questions:I have defined a Device in ACPI,this Device is non-PNP Device and only use IRQ5,because I have reserved IRQ5 for this Device in BIOS.Now I want to write a driver(OS:Windows XP),when IRQ5 triggered by the underlying hardware ,the OS can call the interrupt handlers which in the driver.
The problem is how to tell the os ,the interrupt handlers and IRQ5(be used for the BIOS ACPI Device ) is associated?

解决方案

I don't want to be a nay sayer, but there is a lot of chances that you fail.

You want to write a driver that directly handle hardware, this involve Ring 0 programming, which not for faint hearted people nor for beginners. Usually, only fully trained programmers with specific skills are messing with Ring 0.

One problem is that the OS already have drivers that handle the hardware and your driver have to replace them.

The whole impression is that you attack the problem from a wrong direction and your solution is the most difficult way possible.

I think that there is another way (easier) to solve the problem but we need details on the problem in order to suggest an alternative solution.


See https://msdn.microsoft.com/en-us/windows/hardware/hh852365.aspx[^].


这篇关于如何判断操作系统,中断处理程序和IRQ5(用于BIOS ACPI设备)是否相关?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆