mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
fix: 修复无唤醒事件时,核心卡死在idle进程的问题 (#1063)
Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
parent
62da73bbe5
commit
df3bf6d60a
@ -43,7 +43,7 @@ unsafe extern "C" fn x86_64_do_irq(trap_frame: &mut TrapFrame, vector: u32) {
|
||||
}
|
||||
// 检测当前进程是否可被调度
|
||||
if (current_pcb_flags().contains(ProcessFlags::NEED_SCHEDULE))
|
||||
&& vector == APIC_TIMER_IRQ_NUM.data()
|
||||
|| vector == APIC_TIMER_IRQ_NUM.data()
|
||||
{
|
||||
__schedule(SchedMode::SM_PREEMPT);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user