1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09:00

Kernel: Stop flushing GDT/IDT registers all the time

This commit is contained in:
Andreas Kling 2020-01-18 11:10:44 +01:00
parent 17d4e74518
commit c3e4387c57
Notes: sideshowbarker 2024-07-19 09:59:10 +09:00
2 changed files with 0 additions and 4 deletions

View file

@ -464,7 +464,6 @@ void Scheduler::switch_now()
{
Descriptor& descriptor = get_gdt_entry(current->selector());
descriptor.type = 9;
flush_gdt();
asm("sti\n"
"ljmp *(%%eax)\n" ::"a"(&current->far_ptr()));
}
@ -521,7 +520,6 @@ bool Scheduler::context_switch(Thread& thread)
auto& descriptor = get_gdt_entry(thread.selector());
descriptor.type = 11; // Busy TSS
flush_gdt();
return true;
}