fix: clock_handler use pass right esp to the scheduler
This commit is contained in:
@ -40,7 +40,7 @@ static void clock_handler(struct registers *regs)
|
||||
{
|
||||
(void)regs;
|
||||
if (scheduler_counter % 10 == 0)
|
||||
scheduler((uint32_t *)regs->esp);
|
||||
scheduler((uint32_t *)regs);
|
||||
scheduler_counter++;
|
||||
sleep_counter--;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user