diff options
author | Christian Cunningham <cc@localhost> | 2022-03-16 22:28:33 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-16 22:28:33 -0700 |
commit | a9f63b8cdb930d079cc69d492fe44dc8224c1e03 (patch) | |
tree | c97c9f84f5caa2b0cc77850c21f33b9f5cefaecb /src/util | |
parent | a3732c11ad3bcd2c01a36d0a82a6f310fe8557af (diff) |
More comments
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/lock.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/util/lock.c b/src/util/lock.c index eaeb5a8..50091b0 100644 --- a/src/util/lock.c +++ b/src/util/lock.c @@ -4,15 +4,12 @@ #include <util/lock.h> // TODO: Improve locking for system -// 1. Return code rather than hang? -// 2. Specific core PID rather than CORE0 +// 1. Deadlock prevention by going through mutex list void lock(struct Lock* l) { unsigned long mode = getmode() & 0x1F; if (mode == 0x10) { sys1(SYS_LOCK, l); - } else { - atm_lock(CORE0_PID, (unsigned long*)l); } } @@ -21,7 +18,5 @@ void unlock(struct Lock* l) unsigned long mode = getmode() & 0x1F; if (mode == 0x10) { sys1(SYS_UNLOCK, l); - } else { - atm_release((unsigned long*)l); } } |