mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 02:43:15 +01:00
- 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.
15 lines
308 B
C
15 lines
308 B
C
#ifndef __MUTEX_CONTROL_H__
|
|
#define __MUTEX_CONTROL_H__
|
|
|
|
/* Request ids for mutex_control syscall */
|
|
|
|
#if defined (__KERNEL__)
|
|
#define MUTEX_CONTROL_LOCK L4_MUTEX_LOCK
|
|
#define MUTEX_CONTROL_UNLOCK L4_MUTEX_UNLOCK
|
|
#endif
|
|
|
|
#define L4_MUTEX_LOCK 0
|
|
#define L4_MUTEX_UNLOCK 1
|
|
|
|
#endif /* __MUTEX_CONTROL_H__*/
|