ODROID: Fix compile error.

This commit occur compile errors.
"arm64: Mitigate spectre style branch history side channels"

Change-Id: I4b39dc25b4974827f347fa3633ad4343d5f5dd2c
This commit is contained in:
Chris
2023-06-13 12:38:49 +09:00
parent 4c0aced572
commit bbd75db978
2 changed files with 4 additions and 0 deletions

View File

@@ -512,7 +512,9 @@ alternative_endif
.macro __mitigate_spectre_bhb_loop tmp
#ifdef CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY
#ifdef CONFIG_HARDEN_BRANCH_PREDICTOR
alternative_cb spectre_bhb_patch_loop_iter
#endif
mov \tmp, #32 // Patched to correct the immediate
alternative_cb_end
.Lspectre_bhb_loop\@:

View File

@@ -562,7 +562,9 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
.capability = ARM64_SPECTRE_BHB,
.matches = is_spectre_bhb_affected,
#ifdef CONFIG_MITIGATE_SPECTRE_BRANCH_HISTORY
#ifdef CONFIG_HARDEN_BRANCH_PREDICTOR
.cpu_enable = spectre_bhb_enable_mitigation,
#endif
#endif
},
{