summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-09 03:07:32 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-09 03:12:12 +0200
commit7c50b999fa266ad1b3db422e4281f38648c362c9 (patch)
tree956ca5d1a4aad3383c4a3bfc9103476abe3f1987 /src/core/hle/kernel
parentProcess: Rename StaticAddressMapping => AddressMapping (diff)
downloadyuzu-7c50b999fa266ad1b3db422e4281f38648c362c9.tar
yuzu-7c50b999fa266ad1b3db422e4281f38648c362c9.tar.gz
yuzu-7c50b999fa266ad1b3db422e4281f38648c362c9.tar.bz2
yuzu-7c50b999fa266ad1b3db422e4281f38648c362c9.tar.lz
yuzu-7c50b999fa266ad1b3db422e4281f38648c362c9.tar.xz
yuzu-7c50b999fa266ad1b3db422e4281f38648c362c9.tar.zst
yuzu-7c50b999fa266ad1b3db422e4281f38648c362c9.zip
Diffstat (limited to 'src/core/hle/kernel')
-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 @@
namespace Kernel {
unsigned int Object::next_object_id;
-SharedPtr<Thread> g_main_thread;
HandleTable g_handle_table;
void WaitObject::AddWaitingThread(SharedPtr<Thread> thread) {
@@ -140,7 +139,6 @@ void Init() {
Kernel::TimersInit();
Object::next_object_id = 0;
- g_main_thread = nullptr;
}
/// 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) {
}
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() {}
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:
Handle callback_handle;
};
-extern SharedPtr<Thread> g_main_thread;
-
/**
* Sets up the primary application thread
* @param stack_size The size of the thread's stack