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:
parent
84f96c393c
commit
a9d09e9020
3 changed files with 5 additions and 28 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue