Kernel: Move interrupt status functions to kernel/Interrupts.h

This commit is contained in:
2024-03-01 01:32:33 +02:00
parent 65c4f9db5b
commit 02ad199138
7 changed files with 54 additions and 33 deletions

View File

@@ -220,7 +220,7 @@ namespace Kernel
void Process::on_thread_exit(Thread& thread)
{
ASSERT(!interrupts_enabled());
ASSERT(get_interrupt_state() == InterruptState::Disabled);
ASSERT(m_threads.size() > 0);