Merge pull request #5167 from sum2012/patch-1

Add LoadExecForKernel and SysMemForKernel
This commit is contained in:
Henrik Rydgård 2014-01-21 06:16:33 -08:00
commit a6a774b2b4
3 changed files with 34 additions and 1 deletions

View File

@ -259,6 +259,8 @@ void RegisterAllModules() {
Register_ThreadManForUser();
Register_ThreadManForKernel();
Register_LoadExecForUser();
Register_LoadExecForKernel();
Register_SysMemForKernel();
Register_UtilsForKernel();
Register_SysMemUserForUser();
Register_InterruptManager();

View File

@ -906,6 +906,30 @@ void Register_LoadExecForUser()
RegisterModule("LoadExecForUser", ARRAY_SIZE(LoadExecForUser), LoadExecForUser);
}
int LoadExecForKernel_4AC57943(SceUID cbId)
{
WARN_LOG(SCEKERNEL,"LoadExecForKernel_4AC57943:Not support this patcher");
return sceKernelRegisterExitCallback(cbId);//not sure right
}
const HLEFunction LoadExecForKernel[] =
{
{0x4AC57943,&WrapI_I<LoadExecForKernel_4AC57943>,"LoadExecForKernel_4AC57943"},
{0xa3d5e142,0, "LoadExecForKernel_a3d5e142"},
};
void Register_LoadExecForKernel()
{
RegisterModule("LoadExecForKernel", ARRAY_SIZE(LoadExecForKernel), LoadExecForKernel);
}
const HLEFunction SysMemForKernel[] =
{
{0x636c953b,0, "SysMemForKernel_636c953b"},
{0xc9805775,0, "SysMemForKernel_c9805775"},
{0x1c1fbfe7,0, "SysMemForKernel_1c1fbfe7"},
};
const HLEFunction ExceptionManagerForKernel[] =
{
{0x3FB264FC, 0, "sceKernelRegisterExceptionHandler"},
@ -918,6 +942,11 @@ const HLEFunction ExceptionManagerForKernel[] =
{0xB15357C9, 0, "sceKernelReleaseNmiHandler"},
};
void Register_SysMemForKernel()
{
RegisterModule("SysMemForKernel", ARRAY_SIZE(SysMemForKernel), SysMemForKernel);
}
void Register_ExceptionManagerForKernel()
{
RegisterModule("ExceptionManagerForKernel", ARRAY_SIZE(ExceptionManagerForKernel), ExceptionManagerForKernel);

View File

@ -559,4 +559,6 @@ extern u32 registeredExitCbId;
void Register_ThreadManForUser();
void Register_ThreadManForKernel();
void Register_LoadExecForUser();
void Register_UtilsForKernel();
void Register_LoadExecForKernel();
void Register_SysMemForKernel();
void Register_UtilsForKernel();