1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 02:24:59 +00:00

Kernel: Get rid of the "cool globals" thingy.

This was something I used while debugging with Computron. I haven't needed
it for months, so let's get rid of it. It's trivial to readd if needed.
This commit is contained in:
Andreas Kling 2019-04-21 12:33:14 +02:00
parent 84f96c393c
commit a9d09e9020
3 changed files with 5 additions and 28 deletions

View file

@ -321,10 +321,6 @@ bool Scheduler::context_switch(Thread& thread)
current = &thread;
thread.set_state(Thread::Running);
#ifdef COOL_GLOBALS
g_cool_globals->current_pid = thread.process().pid();
#endif
if (!thread.selector()) {
thread.set_selector(gdt_alloc_entry());
auto& descriptor = get_gdt_entry(thread.selector());