mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Kernel: Implement lazy FPU state restore.
This commit is contained in:
parent
2279f5eaa6
commit
dfdca9d2a7
8 changed files with 50 additions and 9 deletions
|
@ -8,6 +8,7 @@
|
|||
static const dword time_slice = 5; // *10 = 50ms
|
||||
|
||||
Process* current;
|
||||
Process* g_last_fpu_process;
|
||||
static Process* s_colonel_process;
|
||||
static bool s_in_yield;
|
||||
|
||||
|
@ -299,6 +300,7 @@ void Scheduler::initialize()
|
|||
initialize_redirection();
|
||||
s_colonel_process = Process::create_kernel_process("colonel", nullptr);
|
||||
current = nullptr;
|
||||
g_last_fpu_process = nullptr;
|
||||
s_in_yield = false;
|
||||
load_task_register(s_redirection.selector);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue