当中断发生时,x86架构中会发生什么?
我正在研究x86和实时系统,我有一个问题,那就是:
x86遵循哪些步骤来处理任何中断?
I'm studying x86 and Real Time Systems, and I have a question, that is:
Which steps x86 follows to handle any interrupt ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当中断发生时,CPU 会执行以下操作:
ISR 应执行以下操作:
When an interrupt occurs, the CPU does the following:
The ISR should do the following:
从中断描述符表开始。基本上,当发生中断时,流控制跳转到该表,然后跳转到该表中的任何内容。另外,我相信一旦中断发生,所有寄存器都会被推送,但我不能 100% 确定这一点,因为自从我处理这个问题以来已经很长很长一段时间了。
Start here with the Interrupt Descriptor Table. Basically, when an interrupt occurs, flow control jumps to this table and then on to whatever is in this table. Also, I believe all registers are pushed as soon as the interrupt occurs, but I'm not 100% certain of this as it's been a long, long time since I've dealt with this.