Skip to content

Commit 512b220

Browse files
asserhallMichal Simek
authored andcommitted
microblaze: Add sync to tlb operations
Do the real sync by using mbar instruction. Signed-off-by: Stefan Asserhall <[email protected]> Signed-off-by: Michal Simek <[email protected]> Reviewed-by: Arnd Bergmann <[email protected]>
1 parent db79e02 commit 512b220

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/microblaze/kernel/misc.S

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ _tlbia_1:
3939
rsubi r11, r12, MICROBLAZE_TLB_SIZE - 1
4040
bneid r11, _tlbia_1 /* loop for all entries */
4141
addik r12, r12, 1
42-
/* sync */
42+
mbar 1 /* sync */
4343
rtsd r15, 8
4444
nop
4545
.size _tlbia, . - _tlbia
@@ -58,6 +58,7 @@ _tlbie:
5858
blti r12, _tlbie_1 /* Check if found */
5959
mts rtlbhi, r0 /* flush: ensure V is clear */
6060
nop
61+
mbar 1 /* sync */
6162
_tlbie_1:
6263
rtsd r15, 8
6364
nop

0 commit comments

Comments
 (0)