diff options
author | bunnei <ericbunnie@gmail.com> | 2014-05-23 01:06:12 +0200 |
---|---|---|
committer | bunnei <ericbunnie@gmail.com> | 2014-05-23 01:06:12 +0200 |
commit | d26f3d4c1ff27f740fe7185e1bca7dcfc5851919 (patch) | |
tree | c6593a3d3044fbe4f183122d7d6f6b40f175b66c /src/core/hle/kernel/kernel.cpp | |
parent | core: moved armcopro.cpp to correct filter folder (arm/interpreter) (diff) | |
download | yuzu-d26f3d4c1ff27f740fe7185e1bca7dcfc5851919.tar yuzu-d26f3d4c1ff27f740fe7185e1bca7dcfc5851919.tar.gz yuzu-d26f3d4c1ff27f740fe7185e1bca7dcfc5851919.tar.bz2 yuzu-d26f3d4c1ff27f740fe7185e1bca7dcfc5851919.tar.lz yuzu-d26f3d4c1ff27f740fe7185e1bca7dcfc5851919.tar.xz yuzu-d26f3d4c1ff27f740fe7185e1bca7dcfc5851919.tar.zst yuzu-d26f3d4c1ff27f740fe7185e1bca7dcfc5851919.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 15 |
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() { Kernel::ThreadingShutdown(); } -} // namespace - -bool __KernelLoadExec(u32 entry_point) { - Kernel::Init(); +/** + * Loads executable stored at specified address + * @entry_point Entry point in memory of loaded executable + * @return True on success, otherwise false + */ +bool LoadExec(u32 entry_point) { + Init(); Core::g_app_core->SetPC(entry_point); // 0x30 is the typical main thread priority I've seen used so far - Handle thread_id = Kernel::SetupMainThread(0x30); + Handle thread = Kernel::SetupMainThread(0x30); return true; } + +} // namespace |