aboutsummaryrefslogtreecommitdiff
path: root/libs/libc/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libc/alloc.c')
-rw-r--r--libs/libc/alloc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libs/libc/alloc.c b/libs/libc/alloc.c
index 02e30eb..2f8e0ba 100644
--- a/libs/libc/alloc.c
+++ b/libs/libc/alloc.c
@@ -2,7 +2,6 @@
// Mostly by Durand Miller, released into public domain
#include <assert.h>
-#include <cpu.h>
#include <mem.h>
#ifdef KERNEL
@@ -40,17 +39,13 @@ static int liballoc_free(void *ptr, u32 p)
#endif
-static u32 locked = 0;
-
static int liballoc_lock(void)
{
- spinlock(&locked);
return 0;
}
static int liballoc_unlock(void)
{
- locked = 0;
return 0;
}