summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/kernel/kernel.cpp2
-rw-r--r--src/core/hle/kernel/process.cpp2
-rw-r--r--src/core/hle/kernel/thread.h2
3 files changed, 1 insertions, 5 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 5157ab2af..a3715e555 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -17,7 +17,6 @@
17namespace Kernel { 17namespace Kernel {
18 18
19unsigned int Object::next_object_id; 19unsigned int Object::next_object_id;
20SharedPtr<Thread> g_main_thread;
21HandleTable g_handle_table; 20HandleTable g_handle_table;
22 21
23void WaitObject::AddWaitingThread(SharedPtr<Thread> thread) { 22void WaitObject::AddWaitingThread(SharedPtr<Thread> thread) {
@@ -140,7 +139,6 @@ void Init() {
140 Kernel::TimersInit(); 139 Kernel::TimersInit();
141 140
142 Object::next_object_id = 0; 141 Object::next_object_id = 0;
143 g_main_thread = nullptr;
144} 142}
145 143
146/// Shutdown the kernel 144/// Shutdown the kernel
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 9d83d03d6..a444e22e5 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -85,7 +85,7 @@ void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) {
85} 85}
86 86
87void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) { 87void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) {
88 g_main_thread = Kernel::SetupMainThread(stack_size, entry_point, main_thread_priority); 88 Kernel::SetupMainThread(stack_size, entry_point, main_thread_priority);
89} 89}
90 90
91Kernel::Process::Process() {} 91Kernel::Process::Process() {}
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h
index 233bcbdbd..9958b16e6 100644
--- a/src/core/hle/kernel/thread.h
+++ b/src/core/hle/kernel/thread.h
@@ -171,8 +171,6 @@ private:
171 Handle callback_handle; 171 Handle callback_handle;
172}; 172};
173 173
174extern SharedPtr<Thread> g_main_thread;
175
176/** 174/**
177 * Sets up the primary application thread 175 * Sets up the primary application thread
178 * @param stack_size The size of the thread's stack 176 * @param stack_size The size of the thread's stack