aboutsummaryrefslogtreecommitdiff
path: root/src/util/lock.c
diff options
context:
space:
mode:
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);
- }
-}