arm-trusted-firmware/docs/design
Soby Mathew c97cba4ea4 Fix the CAS spinlock implementation
Make the spinlock implementation use ARMv8.1-LSE CAS instruction based
on a platform build option. The CAS-based implementation used to be
unconditionally selected for all ARM8.1+ platforms.

The previous CAS spinlock implementation had a bug wherein the spin_unlock()
implementation had an `sev` after `stlr` which is not sufficient. A dsb is
needed to ensure that the stlr completes prior to the sev. Having a dsb is
heavyweight and a better solution would be to use load exclusive semantics
to monitor the lock and wake up from wfe when a store happens to the lock.
The patch implements the same.

Change-Id: I5283ce4a889376e4cc01d1b9d09afa8229a2e522
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
2019-10-04 10:19:35 +02:00
..
auth-framework.rst Add documentation for new KEY_SIZE option 2019-09-12 15:27:41 +01:00
cpu-specific-build-macros.rst Workaround for Neoverse N1 erratum 1275112 2019-07-02 09:17:19 -05:00
firmware-design.rst Fix the CAS spinlock implementation 2019-10-04 10:19:35 +02:00
index.rst doc: Move documents into subdirectories 2019-05-21 15:05:56 +01:00
interrupt-framework-design.rst doc: Fix typo in file interrupt-framework-design.rst 2019-06-22 12:28:17 +08:00
psci-pd-tree.rst doc: Set correct syntax highlighting style 2019-05-22 11:28:17 +01:00
reset-design.rst doc: Use proper note and warning annotations 2019-05-22 11:28:17 +01:00
trusted-board-boot.rst Further fixes to documentation links 2019-05-30 10:20:07 +01:00