开放spinlock相关函数

This commit is contained in:
shaojinchun
2019-09-27 14:38:33 +08:00
parent 676279421f
commit cb07e5fb24
7 changed files with 148 additions and 3 deletions
+6
View File
@@ -14,6 +14,7 @@
#include <board.h>
#ifdef RT_USING_SMP
int rt_hw_cpu_id(void)
{
int cpu_id;
@@ -25,6 +26,11 @@ int rt_hw_cpu_id(void)
return cpu_id;
};
void rt_hw_spin_lock_init(rt_hw_spinlock_t *lock)
{
lock->slock = 0;
}
void rt_hw_spin_lock(rt_hw_spinlock_t *lock)
{
unsigned long tmp;