Skip to content

Commit 99b0564

Browse files
committed
Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King: "Two further fixes for Spectre-BHB from Ard for Cortex A15 and to use the wide branch instruction for Thumb2" * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 9197/1: spectre-bhb: fix loop8 sequence for Thumb2 ARM: 9196/1: spectre-bhb: enable for Cortex-A15
2 parents 18e471d + 3cfb301 commit 99b0564

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/arm/kernel/entry-armv.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ vector_bhb_loop8_\name:
11451145

11461146
@ bhb workaround
11471147
mov r0, #8
1148-
3: b . + 4
1148+
3: W(b) . + 4
11491149
subs r0, r0, #1
11501150
bne 3b
11511151
dsb

arch/arm/mm/proc-v7-bugs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ void cpu_v7_ca15_ibe(void)
288288
{
289289
if (check_spectre_auxcr(this_cpu_ptr(&spectre_warned), BIT(0)))
290290
cpu_v7_spectre_v2_init();
291+
cpu_v7_spectre_bhb_init();
291292
}
292293

293294
void cpu_v7_bugs_init(void)

0 commit comments

Comments
 (0)