diff options
author | Christian Cunningham <cc@localhost> | 2022-02-13 13:01:59 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-13 13:01:59 -0700 |
commit | 91f828411617247abde3f0ace64389bb2050f794 (patch) | |
tree | 1206eb445ccae6157eecb5c9db3164ca263ade66 /include/util | |
parent | a3b9723b28d24faffab2d0c770cd355939746e63 (diff) |
Unhook old mutex handles
Diffstat (limited to 'include/util')
-rw-r--r-- | include/util/mutex.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/util/mutex.h b/include/util/mutex.h index 524a461..907fe5b 100644 --- a/include/util/mutex.h +++ b/include/util/mutex.h @@ -2,16 +2,17 @@ #define UTIL_MUTEX_H #define NULL_PID 0 -#define SYS_PID 1 -#define SCHED_PID 2 +#define CORE0_PID 1 +#define CORE1_PID 2 +#define CORE2_PID 3 +#define CORE3_PID 4 +#define FIRST_AVAIL_PID CORE3_PID+1 struct Mutex { void* addr; unsigned long pid; } __attribute__((packed, aligned(4)));; -unsigned char lock_mutex(struct Mutex*, unsigned long); -unsigned char release_mutex(struct Mutex*, unsigned long); struct Mutex* create_mutex(void* addr); #endif |