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:
parent
82c84883a5
commit
49b31badba
4 changed files with 82 additions and 20 deletions
|
@ -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(¶m_1, PARAM(1), PARAM(2));
|
||||
Core::g_app_core->SetReg(1, param_1);
|
||||
FuncReturn(retval);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Function wrappers that return type u32
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue