]> git.baikalelectronics.ru Git - arm-tf.git/commit
fix(console): fix crash on spin_unlock with cache disabled
authorBaruch Siach <baruch@tkos.co.il>
Thu, 24 Nov 2022 08:34:06 +0000 (10:34 +0200)
committerJulius Werner <jwerner@chromium.org>
Tue, 29 Nov 2022 02:35:23 +0000 (03:35 +0100)
commit5fb6946ad70f5c6e82502a704633bba1dd82e507
tree435341f28f02a84fa17f3bf4469c1f8f7b1e2fd4
parentd3d2a5a484936a17a4425ea3634b1c2e64dac877
fix(console): fix crash on spin_unlock with cache disabled

Current code skips load of spinlock address when cache is disabled. The
following call to spin_unlock stores into the random location that x0
points to.

Move spinlock address load earlier so that x0 is always valid on
spin_unlock call.

Change-Id: Iac640289725dce2518f2fed483d7d36ca748ffe8
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
plat/common/aarch64/crash_console_helpers.S