summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 45e36173c..de80de893 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -139,15 +139,20 @@ void Shutdown() {
139 Kernel::ThreadingShutdown(); 139 Kernel::ThreadingShutdown();
140} 140}
141 141
142} // namespace 142/**
143 143 * Loads executable stored at specified address
144bool __KernelLoadExec(u32 entry_point) { 144 * @entry_point Entry point in memory of loaded executable
145 Kernel::Init(); 145 * @return True on success, otherwise false
146 */
147bool LoadExec(u32 entry_point) {
148 Init();
146 149
147 Core::g_app_core->SetPC(entry_point); 150 Core::g_app_core->SetPC(entry_point);
148 151
149 // 0x30 is the typical main thread priority I've seen used so far 152 // 0x30 is the typical main thread priority I've seen used so far
150 Handle thread_id = Kernel::SetupMainThread(0x30); 153 Handle thread = Kernel::SetupMainThread(0x30);
151 154
152 return true; 155 return true;
153} 156}
157
158} // namespace