Skip to content

Commit cd8869f

Browse files
committed
xtensa: add missing isync to the cpu_reset TLB code
ITLB entry modifications must be followed by the isync instruction before the new entries are possibly used. cpu_reset lacks one isync between ITLB way 6 initialization and jump to the identity mapping. Add missing isync to xtensa cpu_reset. Cc: stable@vger.kernel.org Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent d45331b commit cd8869f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/xtensa/kernel/setup.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ void cpu_reset(void)
511511
"add %2, %2, %7\n\t"
512512
"addi %0, %0, -1\n\t"
513513
"bnez %0, 1b\n\t"
514+
"isync\n\t"
514515
/* Jump to identity mapping */
515516
"jx %3\n"
516517
"2:\n\t"

0 commit comments

Comments
 (0)