aboutsummaryrefslogtreecommitdiff
path: root/src/util/mutex.c
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-04 23:48:40 -0700
committerChristian Cunningham <cc@localhost>2022-02-04 23:48:40 -0700
commit465a630377b97cff92ce44e9a1f32115e7d1f557 (patch)
tree84b0955e5ea12da850dc777a94bef66c4a45b218 /src/util/mutex.c
parenta16e8875d13d884ca203bfd83dffe8fae17405c4 (diff)
Move to new mem
Diffstat (limited to 'src/util/mutex.c')
-rw-r--r--src/util/mutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/mutex.c b/src/util/mutex.c
index 52173af..5583d09 100644
--- a/src/util/mutex.c
+++ b/src/util/mutex.c
@@ -1,6 +1,6 @@
#include <cpu/atomic/swap.h>
#include <globals.h>
-#include <lib/mem.h>
+#include <lib/kmem.h>
#include <sys/schedule.h>
#include <util/mutex.h>
@@ -45,7 +45,7 @@ unsigned char release_mutex(struct Mutex* m, unsigned long pid)
struct Mutex* create_mutex(void* addr)
{
// Ensure aligned to word - Important for Atomic Swap
- struct Mutex* m = (struct Mutex*)malloca(sizeof(struct Mutex), 4);
+ struct Mutex* m = (struct Mutex*)kmalloc(sizeof(struct Mutex));
m->addr = addr;
m->pid = 0;
return m;