diff options
Diffstat (limited to 'kernel/spinlock.h')
| -rw-r--r-- | kernel/spinlock.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/kernel/spinlock.h b/kernel/spinlock.h index 8ce2f57..daa1a50 100644 --- a/kernel/spinlock.h +++ b/kernel/spinlock.h @@ -1,6 +1,14 @@ /* * @file * + * Spinlock + * ======== + * + * Use this locks only for very short time! + * + * + * Ref + * --- * https://gcc.gnu.org/onlinedocs/gcc/_005f_005fatomic-Builtins.html */ @@ -9,7 +17,7 @@ #include <stdint.h> -void lock_spin(spinlock); -void lock_release(spinlock); +void spinlock_spin(uint32_t num); +void spinlock_release(uint32_t num); #endif |
