diff options
| author | Miguel <m.i@gmx.at> | 2018-09-06 01:58:10 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-09-06 01:58:10 +0200 |
| commit | ef4943053475cd8bf341c42dd0b538bc630b92a3 (patch) | |
| tree | b7f59c937797a0ce0603af9ef46a194d4a64ef22 /kernel/spinlock.h | |
| parent | f67ad595650954195ef064a8b91038dbd0e16842 (diff) | |
working on smp
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 |
