mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 04:56:30 +00:00
🔧 将软中断更改为不可重入
This commit is contained in:
@ -479,9 +479,9 @@ void do_IRQ(struct pt_regs *rsp, ul number)
|
||||
}
|
||||
|
||||
// kdebug("before softirq");
|
||||
// 检测是否有未处理的软中断
|
||||
if (softirq_status != 0)
|
||||
do_softirq();
|
||||
// 进入软中断处理程序
|
||||
do_softirq();
|
||||
|
||||
// kdebug("after softirq");
|
||||
// 检测当前进程是否持有自旋锁,若持有自旋锁,则不进行抢占式的进程调度
|
||||
if (current_pcb->preempt_count > 0)
|
||||
|
Reference in New Issue
Block a user