Kernel: Rewrite whole scheduler

Current context saving was very hacky and dependant on compiler
behaviour that was not consistent. Now we always use iret for
context saving. This makes everything more clean.
This commit is contained in:
2024-03-29 18:02:12 +02:00
parent 1b65f850ee
commit 5050047cef
18 changed files with 364 additions and 364 deletions

View File

@@ -79,7 +79,7 @@ namespace Kernel
if (it != m_arp_table.end())
return it->value;
}
Scheduler::get().reschedule();
Scheduler::get().yield();
}
return BAN::Error::from_errno(ETIMEDOUT);

View File

@@ -164,7 +164,7 @@ namespace Kernel
}
while (!connection_info.connection_done)
Scheduler::get().reschedule();
Scheduler::get().yield();
return {};
}