mirror of
https://github.com/drasko/codezero.git
synced 2026-01-14 20:03:16 +01:00
Added mutex_control syscall for userspace mutexes.
- Compiles and Codezero runs as normal without touching mutex implementation - Mutex implementation needs testing. The mutex control syscall allows userspace programs to declare any virtual address as a mutex lock and ask for help from the kernel syscall for resolving locking contentions.
This commit is contained in:
@@ -23,7 +23,8 @@
|
||||
#define sys_kread_offset 0x28
|
||||
#define sys_kmem_control_offset 0x2C
|
||||
#define sys_time_offset 0x30
|
||||
#define syscalls_end_offset sys_time_offset
|
||||
#define sys_mutex_control_offset 0x34
|
||||
#define syscalls_end_offset sys_mutex_control_offset
|
||||
#define SYSCALLS_TOTAL ((syscalls_end_offset >> 2) + 1)
|
||||
|
||||
void print_syscall_context(struct ktcb *t);
|
||||
@@ -41,5 +42,6 @@ int sys_getid(struct syscall_context *);
|
||||
int sys_kread(struct syscall_context *);
|
||||
int sys_kmem_control(struct syscall_context *);
|
||||
int sys_time(struct syscall_context *);
|
||||
int sys_mutex_control(struct syscall_context *);
|
||||
|
||||
#endif /* __SYSCALL_H__ */
|
||||
|
||||
Reference in New Issue
Block a user