Home
last modified time | relevance | path

Searched refs:KRHINO_SPINLOCK_MAGIC_VAL (Results 1 – 1 of 1) sorted by relevance

/AliOS-Things-master/kernel/rhino/
A Dk_spin_lock.c15 #define KRHINO_SPINLOCK_MAGIC_VAL 0xB33F0000u macro
33 if ((lock->owner & KRHINO_SPINLOCK_MAGIC_MASK) != KRHINO_SPINLOCK_MAGIC_VAL) { in k_cpu_spin_lock()
39 res = (cpu_cur_get() << KRHINO_SPINLOCK_VAL_SHIFT) | KRHINO_SPINLOCK_MAGIC_VAL; in k_cpu_spin_lock()
53 lock->owner = KRHINO_SPINLOCK_MAGIC_VAL | (recCnt << KRHINO_SPINLOCK_CNT_SHIFT) | in k_cpu_spin_lock()
95 if ((lock->owner & KRHINO_SPINLOCK_MAGIC_MASK) != KRHINO_SPINLOCK_MAGIC_VAL) { in k_cpu_spin_unlock()
103 (cpu_cur_get() << KRHINO_SPINLOCK_VAL_SHIFT) | KRHINO_SPINLOCK_MAGIC_VAL, in k_cpu_spin_unlock()
112 lock->owner = KRHINO_SPINLOCK_MAGIC_VAL | (recCnt << KRHINO_SPINLOCK_CNT_SHIFT) in k_cpu_spin_unlock()

Completed in 3 milliseconds