feat: some extensions to kernel standard c library. Other minor
improvements and formats
This commit is contained in:
@@ -126,7 +126,9 @@ void mutex_free(mutex_t *mutex) {
|
||||
}
|
||||
|
||||
spinlock_t *spinlock_create() {
|
||||
return malloc(sizeof(spinlock_t));
|
||||
spinlock_t *lock = malloc(sizeof(spinlock_t));
|
||||
lock->lock = false;
|
||||
return lock;
|
||||
}
|
||||
|
||||
void spinlock_acquire(spinlock_t *spinlock) {
|
||||
|
||||
Reference in New Issue
Block a user