From ef4943053475cd8bf341c42dd0b538bc630b92a3 Mon Sep 17 00:00:00 2001 From: Miguel Date: Thu, 6 Sep 2018 01:58:10 +0200 Subject: working on smp --- kernel/spinlock.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'kernel/spinlock.h') 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 -void lock_spin(spinlock); -void lock_release(spinlock); +void spinlock_spin(uint32_t num); +void spinlock_release(uint32_t num); #endif -- cgit v1.2.3