- added __KernelLoadExec function

- fixed some logging
This commit is contained in:
bunnei 2014-05-13 21:57:12 -04:00
parent ce4d271a53
commit 1583d2b6f3
2 changed files with 35 additions and 13 deletions

View file

@ -8,6 +8,7 @@
#include "common/common.h"
#include "core/core.h"
#include "core/hle/kernel/kernel.h"
#include "core/hle/kernel/thread.h"
@ -140,3 +141,13 @@ KernelObject *KernelObjectPool::CreateByIDType(int type) {
return NULL;
}
}
bool __KernelLoadExec(u32 entry_point) {
__KernelInit();
Core::g_app_core->SetPC(entry_point);
UID thread_id = __KernelSetupRootThread(0xDEADBEEF, 0, 0x31);
return true;
}