Commit cd8869f4 authored by Max Filippov's avatar Max Filippov

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: default avatarMax Filippov <jcmvbkbc@gmail.com>
parent d45331b0
...@@ -511,6 +511,7 @@ void cpu_reset(void) ...@@ -511,6 +511,7 @@ void cpu_reset(void)
"add %2, %2, %7\n\t" "add %2, %2, %7\n\t"
"addi %0, %0, -1\n\t" "addi %0, %0, -1\n\t"
"bnez %0, 1b\n\t" "bnez %0, 1b\n\t"
"isync\n\t"
/* Jump to identity mapping */ /* Jump to identity mapping */
"jx %3\n" "jx %3\n"
"2:\n\t" "2:\n\t"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment