diff options
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); } } |