Owners manual

System
H3 Datasheet(Revision1.2) Copyright© 2015 Allwinner Technology Co.,Ltd.All Rights Reserved. Page 224
Bit
R/W
Default/Hex
Description
31:30
/
/
/
29:28
RO
0x1
LOCKS_NUM.
Number of lock registers implemented.
0x1: This instance has 32 lock registers.
0x2: This instance has 64 lock registers.
0x3: This instance has 128 lock registers.
0x4: This instance has 256 lock registers.
27:16
/
/
/
15:9
/
/
/
8
RO
0x0
IU0.
In-Use flag0, covering lock register0-31.
0: All lock register 0-31 are in the Not Taken state.
1: At least one of the lock register 0-31 is in the Taken state.
7:0
/
/
/
4.14.5.2. Spinlock Register Status (Default Value: 0x00000000)
Offset: 0x10
Register Name: SPINLOCK_STATUS_REG
Bit
R/W
Default/Hex
Description
[i]
(i=0~31)
RO
0x0
LOCK_REG_STATUS.
SpinLock[i] status (i=0~31)
0: The Spinlock is free,
1: The Spinlock is taken.
4.14.5.3. Spinlock Register N (N=0 to 31)(Default Value: 0x00000000)
Offset:0x100+N*0x4 (N=0~31)
Register Name: SPINLOCKN_LOCK_REG
Bit
R/W
Default/Hex
Description
31:1
/
/
/
0
R/W
0x0
TAKEN.
Lock State.
Read 0x0: The lock was previously Not Taken (free).The requester is
granted the lock.
Write 0x0: Set the lock to Not Taken (free).
Read 0x1: The lock was previously Taken. The requester is not granted
the lock and must retry.
Write 0x1: No update to the lock value.
confidential