1
0
Fork 0

Kernel: Remove unused g_main_thread variable

This commit is contained in:
Yuri Kunde Schlesner 2015-05-08 22:07:32 -03:00
parent 3cb19c9589
commit 7c50b999fa
3 changed files with 1 additions and 5 deletions

View File

@ -17,7 +17,6 @@
namespace Kernel { namespace Kernel {
unsigned int Object::next_object_id; unsigned int Object::next_object_id;
SharedPtr<Thread> g_main_thread;
HandleTable g_handle_table; HandleTable g_handle_table;
void WaitObject::AddWaitingThread(SharedPtr<Thread> thread) { void WaitObject::AddWaitingThread(SharedPtr<Thread> thread) {
@ -140,7 +139,6 @@ void Init() {
Kernel::TimersInit(); Kernel::TimersInit();
Object::next_object_id = 0; Object::next_object_id = 0;
g_main_thread = nullptr;
} }
/// Shutdown the kernel /// Shutdown the kernel

View File

@ -85,7 +85,7 @@ void Process::ParseKernelCaps(const u32* kernel_caps, size_t len) {
} }
void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) { void Process::Run(VAddr entry_point, s32 main_thread_priority, u32 stack_size) {
g_main_thread = Kernel::SetupMainThread(stack_size, entry_point, main_thread_priority); Kernel::SetupMainThread(stack_size, entry_point, main_thread_priority);
} }
Kernel::Process::Process() {} Kernel::Process::Process() {}

View File

@ -171,8 +171,6 @@ private:
Handle callback_handle; Handle callback_handle;
}; };
extern SharedPtr<Thread> g_main_thread;
/** /**
* Sets up the primary application thread * Sets up the primary application thread
* @param stack_size The size of the thread's stack * @param stack_size The size of the thread's stack