summaryrefslogtreecommitdiff
path: root/Kernel/init.cpp
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-06-28 15:34:31 -0600
committerAndreas Kling <kling@serenityos.org>2020-07-01 12:07:01 +0200
commit16783bd14d5284542205a50c441562c19174f101 (patch)
tree433c7802b5d8dcb0d2bfe0da8f25dbc5145d6ddf /Kernel/init.cpp
parentcdc78515b6e12f6bf8b62cf311d8dde12e191cbd (diff)
downloadserenity-16783bd14d5284542205a50c441562c19174f101.zip
Kernel: Turn Thread::current and Process::current into functions
This allows us to query the current thread and process on a per processor basis
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r--Kernel/init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/init.cpp b/Kernel/init.cpp
index 41dfa5a549..9f90528c19 100644
--- a/Kernel/init.cpp
+++ b/Kernel/init.cpp
@@ -310,7 +310,7 @@ void init_stage2()
hang();
}
- Process::current->set_root_directory(VFS::the().root_custody());
+ Process::current()->set_root_directory(VFS::the().root_custody());
load_kernel_symbol_table();
@@ -329,7 +329,7 @@ void init_stage2()
NetworkTask::spawn();
- Process::current->sys$exit(0);
+ Process::current()->sys$exit(0);
ASSERT_NOT_REACHED();
}