mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
fix: 解决了page的锁未被初始化的bug
This commit is contained in:
@ -509,7 +509,7 @@ void do_IRQ(struct pt_regs *rsp, ul number)
|
||||
// 检测当前进程是否可被调度
|
||||
if (current_pcb->flags & PF_NEED_SCHED)
|
||||
{
|
||||
// kdebug("to sched");
|
||||
io_mfence();
|
||||
sched_cfs();
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ hardware_intr_controller apic_timer_intr_controller =
|
||||
*/
|
||||
void apic_timer_handler(uint64_t number, uint64_t param, struct pt_regs *regs)
|
||||
{
|
||||
|
||||
io_mfence();
|
||||
sched_update_jiffies();
|
||||
io_mfence();
|
||||
}
|
||||
@ -91,7 +91,8 @@ void apic_timer_init()
|
||||
hlt();
|
||||
}
|
||||
kinfo("Initializing apic timer for cpu %d", proc_current_cpu_id);
|
||||
|
||||
io_mfence();
|
||||
irq_register(APIC_TIMER_IRQ_NUM, &apic_timer_ticks_result, &apic_timer_handler, 0, &apic_timer_intr_controller, "apic timer");
|
||||
io_mfence();
|
||||
kinfo("Successfully initialized apic timer for cpu %d", proc_current_cpu_id);
|
||||
}
|
Reference in New Issue
Block a user