[Zion] Add a mutex object with appropriate syscalls.

This commit is contained in:
Drew Galbraith 2023-10-25 14:47:45 -07:00
parent 4c2237fa72
commit 4c04f9d561
19 changed files with 160 additions and 60 deletions

View file

@ -11,6 +11,7 @@
#include "syscall/ipc.h"
#include "syscall/memory_object.h"
#include "syscall/process.h"
#include "syscall/synchronization.h"
#include "syscall/thread.h"
#define EFER 0xC0000080
@ -80,6 +81,10 @@ extern "C" z_err_t SyscallHandler(uint64_t call_id, void* req) {
CASE(ReplyPortRecv);
// syscall/capability.h
CASE(CapDuplicate);
// syscall/syncronization.h
CASE(MutexCreate);
CASE(MutexLock);
CASE(MutexRelease);
// syscall/debug.h
CASE(Debug);
default: