| 70 | }; |
| 71 | |
| 72 | void rt_hw_spin_lock_init(rt_hw_spinlock_t *_lock) |
| 73 | { |
| 74 | union _spinlock *lock = (void *)_lock; |
| 75 | |
| 76 | /** |
| 77 | * just a dummy note that this is an atomic operation, though it alway is |
| 78 | * even without usage of atomic API in arm64 |
| 79 | */ |
| 80 | atomic_store_explicit(&lock->_value, 0, memory_order_relaxed); |
| 81 | } |
| 82 | |
| 83 | rt_bool_t rt_hw_spin_trylock(rt_hw_spinlock_t *_lock) |
| 84 | { |
no outgoing calls
no test coverage detected