mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-05-28 09:29:09 +12:00
[Kernel] Register CreateMutex in the SVC table
This commit is contained in:
parent
015343a848
commit
72132cd97e
3 changed files with 9 additions and 0 deletions
src/core/kernel
|
@ -213,6 +213,13 @@ void Kernel::getThreadID() {
|
|||
regs[1] = thread->getData<Thread>()->index;
|
||||
}
|
||||
|
||||
void Kernel::createMutex() {
|
||||
bool locked = regs[1] != 0;
|
||||
Helpers::panic("CreateMutex (initially locked: %s)\n", locked ? "yes" : "no");
|
||||
|
||||
regs[0] = SVCResult::Success;
|
||||
}
|
||||
|
||||
void Kernel::releaseMutex() {
|
||||
const Handle handle = regs[0];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue