From 465a630377b97cff92ce44e9a1f32115e7d1f557 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Fri, 4 Feb 2022 23:48:40 -0700 Subject: Move to new mem --- src/util/mutex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util') 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 #include -#include +#include #include #include @@ -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; -- cgit v1.2.1