gpt4 book ai didi

谁能解释什么是 Windows HAL 以及它的用途?

转载 作者:行者123 更新时间:2023-12-01 09:13:06 32 4
gpt4 key购买 nike

干杯...

我知道它代表硬件抽象层,但它到底是做什么的?它是为 VB 等高级语言设计的与硬件通信吗? IN/OUT 指令是调用 HAL 例程还是通过 I/O 管理器直接与硬件的设备驱动程序通信?

提前致谢

最佳答案

I understand that it stands for Hardware Abstraction Layer but what exactly does it do ?



它本质上是 NT 内核的“不可移植”部分,作为单独的模块提供,以便 NT 可以移植到多个处理器架构。示例:中断路由。

Is it designed for high level languages like VB to communicate with the hardware ?



不,它是作为 NT 内核的支持例程。如果您在用户模式下编码(就像在 VB 等高级语言中一样),您无需知道它的存在。

What about the IN/OUT instructions do these instructions call into a HAL routine or do they communicate directly with the hardware's device driver via the I/O manager ?



当您使用 inout指令,这是直接与 CPU 对话。这与您正在讨论的 NT 内核主题完全无关。那里没有 HAL。没有 NT I/O 管理器。这些指令是 x86 指令集提供的用于通过 I/O 地址与设备通信的指令。

关于谁能解释什么是 Windows HAL 以及它的用途?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11068328/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com