spinlock_t and tagged memory block size

Rui Sousa rui.p.m.sousa at gmail.com
Fri Mar 16 07:44:22 EDT 2012


Hi,

Cortex-A9 architecture defines the minimum size of tagged memory block
(used on load/store exclusives) to be 2^3 = 8bytes (Cortex A9 r2p2,
Technical Reference Manual, page 4-8).
However, the spinlock_t structure size (if preemption and spinlock
debug options are all disabled) is only 4bytes.
AFAICS, this will break spinlocks if two spinlocks are linked next to
each other. Am I right, or did I miss something?

Br,
Rui



More information about the linux-arm-kernel mailing list