我读了一些相关的文章:
(1)罗伯特·洛夫:
You cannot sleep in an interrupt handler because interrupts do not have a backing
process context, and thus there is nothing to reschedule back into. In other
words, interrupt handlers are not associated with a task, so there is nothing to
"put to sleep" and (more i
作为一个学校项目,我正在为x86编写一个内核(使用qemu来模拟),我遇到了奇怪的问题。即使我已经在eflags寄存器中设置了中断标志,我仍然不会收到任何时钟中断(我使用qemu info register命令进行了检查,我看到了eflag=0x292,这意味着它已经设置)。
准确地说,当我在用户模式下运行自旋测试(while(1);program)时,我得到了一个时钟中断,但在那个中断之后,它停止了,qemu似乎没有更多的模拟!其他人也发生过这种事吗?是否有其他机制可以影响中断?有谁有线索吗?
小谢。