程序集 - 权限级别
如何在保护模式下执行 IN 和 OUT 等受限指令?
我发现它需要足够高的特权级别(CPL)才能执行 IO 指令。我怎样才能在内核模式下运行,拥有 IO 权限或任何其他可能对我有帮助的东西? - 我希望能够直接访问硬件,没有任何东西阻碍我。
谢谢。
How can I perform restricted instructions such as IN and OUT from protected mode?
I've found out that It would require privilege level (CPL) high enough to perform the IO instruction. How can I run in kernel mode, have IO permission or anything other that may help me? - I would like to have direct access to hardware, without anything blocking me.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
DOS 不是保护模式操作系统。在过去,有一些称为 DOS 扩展器 的 PM 框架。他们有一个 API 可以处理类似的事情。创建您自己的 PM 环境不仅仅包括将 CPU 切换到保护模式。
您还应该使用调试程序来检查 DosBox 下到底出了什么问题。
DOS is not a protected mode OS. In the olden days there were PM frameworks called DOS extenders. They have an API for things like this. Creating your own PM environment consists of much more than just switching the CPU to Protected Mode.
You should also use a debugger program to check what exactly is wrong under DosBox.