SVC: Implemented ReleaseSemaphore.

This behavior was tested on hardware, however i'm still not sure what use the "initial_count" parameter has
This commit is contained in:
Subv 2014-12-04 11:40:36 -05:00
parent 82c84883a5
commit 49b31badba
4 changed files with 82 additions and 20 deletions

View file

@ -121,6 +121,13 @@ template<s32 func(u32*, s32, s32)> void Wrap() {
FuncReturn(retval);
}
template<s32 func(s32*, u32, s32)> void Wrap() {
s32 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