[Kernel] Register CreateMutex in the SVC table

This commit is contained in:
wheremyfoodat 2022-10-15 23:19:28 +03:00
parent 015343a848
commit 72132cd97e
3 changed files with 9 additions and 0 deletions
src/core/kernel

View file

@ -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];