Kernel: Make SCHEDULER_DEBUG work on x86_64

This commit is contained in:
Gunnar Beutner 2021-07-16 22:05:44 +02:00 committed by Andreas Kling
parent 741ca5477c
commit 7c3bfde8fd
Notes: sideshowbarker 2024-07-18 08:48:56 +09:00

View file

@ -229,7 +229,10 @@ bool Scheduler::pick_next()
thread_to_schedule,
thread_to_schedule.regs().cs, thread_to_schedule.regs().eip);
#else
PANIC("Scheduler::pick_next() not implemented");
dbgln("Scheduler[{}]: Switch to {} @ {:04x}:{:016x}",
Processor::id(),
thread_to_schedule,
thread_to_schedule.regs().cs, thread_to_schedule.regs().rip);
#endif
}