18 #ifdef POK_NEEDS_MUTEXES
21 #include <core/mutex.h>
22 #include <core/lockobj.h>
23 #include <core/syscall.h>
29 lockattr.kind = POK_LOCKOBJ_KIND_MUTEX;
32 lockattr.locking_policy = POK_MUTEX_POLICY_STANDARD;
38 case POK_MUTEX_POLICY_STANDARD:
39 lockattr.locking_policy = POK_MUTEX_POLICY_STANDARD;
42 case POK_MUTEX_POLICY_PIP:
43 lockattr.locking_policy = POK_MUTEX_POLICY_PIP;
46 case POK_MUTEX_POLICY_PCP:
47 lockattr.locking_policy = POK_MUTEX_POLICY_PCP;
51 lockattr.locking_policy = POK_MUTEX_POLICY_STANDARD;
54 return pok_syscall2 (POK_SYSCALL_LOCKOBJ_CREATE, (uint32_t)
id, (uint32_t)&lockattr);