The main Spinlock operations are:
- Clear all the Taken spinlocks by writing 0 to
SPINLOCK_LOCK_REG_y (only after a system bug recovery)
- Take a spinlock by reading the
SPINLOCK_LOCK_REG_i[0] TAKEN bit
- Release spinlock by writing 0 to
SPINLOCK_LOCK_REG_i[0] TAKEN bit