aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/lock.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/lock.c b/src/util/lock.c
new file mode 100644
index 0000000..2a7d35e
--- /dev/null
+++ b/src/util/lock.c
@@ -0,0 +1,9 @@
+#include <util/lock.h>
+#include <lib/kmem.h>
+
+struct Lock* create_lock(void)
+{
+ struct Lock* l = (struct Lock*)kmalloc(sizeof(struct Lock));
+ l->pid = 0;
+ return l;
+}