Cleanup syscalls
All checks were successful
Build documentation / build-and-deploy (push) Successful in 34s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 34s
This commit is contained in:
@@ -6,15 +6,13 @@
|
||||
|
||||
#define LIBALLOC_MUTEX 500
|
||||
|
||||
static int liballoc_mutex;
|
||||
void liballoc_init (void) { mutex_create (LIBALLOC_MUTEX); }
|
||||
|
||||
void liballoc_init (void) { liballoc_mutex = create_mutex (LIBALLOC_MUTEX); }
|
||||
void liballoc_deinit (void) { mutex_delete (LIBALLOC_MUTEX); }
|
||||
|
||||
void liballoc_deinit (void) { unlink_mutex (liballoc_mutex); }
|
||||
int liballoc_lock (void) { return mutex_lock (LIBALLOC_MUTEX); }
|
||||
|
||||
int liballoc_lock (void) { return lock_mutex (liballoc_mutex); }
|
||||
|
||||
int liballoc_unlock (void) { return unlock_mutex (liballoc_mutex); }
|
||||
int liballoc_unlock (void) { return mutex_unlock (LIBALLOC_MUTEX); }
|
||||
|
||||
void* liballoc_alloc (int pages) { return map (0, pages, MAP_FLAGS | MAP_RW); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user