SVC: Implemented svcCreateSemaphore

ToDo: Implement svcReleaseSemaphore
* Some testing against hardware needed
This commit is contained in:
Subv 2014-12-03 18:49:51 -05:00
parent 9ce11b2d92
commit 82c84883a5
5 changed files with 117 additions and 1 deletions

View file

@ -114,6 +114,13 @@ template<s32 func(u32*, const char*)> void Wrap() {
FuncReturn(retval);
}
template<s32 func(u32*, s32, s32)> void Wrap() {
u32 param_1 = 0;
u32 retval = func(&param_1, PARAM(1), PARAM(2));
Core::g_app_core->SetReg(1, param_1);
FuncReturn(retval);
}
////////////////////////////////////////////////////////////////////////////////////////////////////
// Function wrappers that return type u32