SVC: Implemented svcCreateSemaphore
ToDo: Implement svcReleaseSemaphore * Some testing against hardware needed
This commit is contained in:
parent
9ce11b2d92
commit
82c84883a5
5 changed files with 117 additions and 1 deletions
|
@ -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(¶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