aboutsummaryrefslogtreecommitdiff
path: root/src/util/lock.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-03-24 09:38:08 -0700
committerChristian Cunningham <cc@localhost>2022-03-24 09:38:08 -0700
commit93bf62580a68533dc8252b9a2a055c02f34ecb67 (patch)
tree1b1ca92ebbe107a998136a1442c0dba5be885e13 /src/util/lock.c
parent3e64dda5d5c350cc325650133f7e64967f1efe84 (diff)
Modularized
Diffstat (limited to 'src/util/lock.c')
-rw-r--r--src/util/lock.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/util/lock.c b/src/util/lock.c
deleted file mode 100644
index c9fe654..0000000
--- a/src/util/lock.c
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <cpu.h>
-#include <cpu/atomic/swap.h>
-#include <util/mutex.h>
-#include <util/lock.h>
-
-void lock(struct Lock* l)
-{
- unsigned long mode = getmode() & 0x1F;
- if (mode == 0x10) {
- sys1(SYS_LOCK, l);
- }
-}
-
-void unlock(struct Lock* l)
-{
- unsigned long mode = getmode() & 0x1F;
- if (mode == 0x10) {
- sys1(SYS_UNLOCK, l);
- }
-}