mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:28:11 +00:00
Kernel: Use new Thread::previous_mode to track ticks
This commit is contained in:
parent
0bd558081e
commit
33cdc1d2f1
3 changed files with 4 additions and 4 deletions
|
@ -500,7 +500,7 @@ void Scheduler::timer_tick(const RegisterState& regs)
|
|||
[[maybe_unused]] auto rc = perf_events.append_with_eip_and_ebp(regs.eip, regs.ebp, PERF_EVENT_SAMPLE, 0, 0);
|
||||
}
|
||||
|
||||
if (current_thread->tick((regs.cs & 3) == 0))
|
||||
if (current_thread->tick())
|
||||
return;
|
||||
|
||||
ASSERT_INTERRUPTS_DISABLED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue