Skip to content

Commit

Permalink
fix: 修复无唤醒事件时,核心卡死在idle进程的问题 (#1063)
Browse files Browse the repository at this point in the history
Signed-off-by: longjin <[email protected]>
  • Loading branch information
fslongjin authored Nov 28, 2024
1 parent 62da73b commit df3bf6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/src/arch/x86_64/interrupt/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit df3bf6d

Please sign in to comment.