|
@@ -142,6 +142,9 @@ alternative_else_nop_endif
|
|
// to save/restore them if required.
|
|
// to save/restore them if required.
|
|
.macro apply_ssbd, state, targ, tmp1, tmp2
|
|
.macro apply_ssbd, state, targ, tmp1, tmp2
|
|
#ifdef CONFIG_ARM64_SSBD
|
|
#ifdef CONFIG_ARM64_SSBD
|
|
|
|
+alternative_cb arm64_enable_wa2_handling
|
|
|
|
+ b \targ
|
|
|
|
+alternative_cb_end
|
|
ldr_this_cpu \tmp2, arm64_ssbd_callback_required, \tmp1
|
|
ldr_this_cpu \tmp2, arm64_ssbd_callback_required, \tmp1
|
|
cbz \tmp2, \targ
|
|
cbz \tmp2, \targ
|
|
mov w0, #ARM_SMCCC_ARCH_WORKAROUND_2
|
|
mov w0, #ARM_SMCCC_ARCH_WORKAROUND_2
|