Owners manual

System
H3 Datasheet(Revision1.2) Copyrigh 2015 Allwinner Technology Co.,Ltd.All Rights Reserved. Page 222
4.14.2. Functionalities Description
4.14.2.1. Typical Applications
Start
Is the Lock Taken?
(SPINLOCK_LOCK_REG_i[0]=0?)
SPINLOCK_LOCK_REG_i[0]=0
End
Y
N
Take a Lock
Free a Lock
Take the Lock
Critical code section
Free the Lock
Figure3-11. Spinlock Typical Application Flow Chart
4.14.2.2. Functional Block Diagram
Unlocked State
(TAKEN_bit=0)
Locked State
(TAKEN_bit=1)
Read: 0
Write 1
Read: 1
Write 0
Write 0/1
Reset
Figure 4-9. Spinlock Lock Register State Diagram
Every lock register has two kinds of states: TAKEN(locked) or NOT TAKEN(Unlocked). Only read-0-access and
write-0-access could change lock registerstate and the other accesses has no effect. Just 32-bit reads and writes are
supported to access all lock registers.
confidential