PMM and liballoc port
This commit is contained in:
13
kernel/sync/spin_lock.h
Normal file
13
kernel/sync/spin_lock.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef _KERNEL_SYNC_SPIN_LOCK_H
|
||||
#define _KERNEL_SYNC_SPIN_LOCK_H
|
||||
|
||||
#include <libk/std.h>
|
||||
|
||||
#define SPIN_LOCK_INIT ATOMIC_FLAG_INIT
|
||||
|
||||
typedef atomic_flag spin_lock_t;
|
||||
|
||||
void spin_lock(spin_lock_t *sl);
|
||||
void spin_unlock(spin_lock_t *sl);
|
||||
|
||||
#endif // _KERNEL_SYNC_SPIN_LOCK_H
|
||||
Reference in New Issue
Block a user