diff options
author | Stefan Asserhall <stefan.asserhall@xilinx.com> | 2020-02-04 19:55:28 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-02-25 14:33:19 +0300 |
commit | 512b2203e4b8faaa9c37c51534557345f8744616 (patch) | |
tree | 7e53d78af12c8ae2741af3c616407c3fd44c6260 /arch/microblaze/kernel | |
parent | db79e0292d4408261bb46b15ab6e4a40a8bb320d (diff) | |
download | linux-512b2203e4b8faaa9c37c51534557345f8744616.tar.xz |
microblaze: Add sync to tlb operations
Do the real sync by using mbar instruction.
Signed-off-by: Stefan Asserhall <stefan.asserhall@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/microblaze/kernel')
-rw-r--r-- | arch/microblaze/kernel/misc.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/misc.S b/arch/microblaze/kernel/misc.S index 6759af688451..1228a09d8109 100644 --- a/arch/microblaze/kernel/misc.S +++ b/arch/microblaze/kernel/misc.S @@ -39,7 +39,7 @@ _tlbia_1: rsubi r11, r12, MICROBLAZE_TLB_SIZE - 1 bneid r11, _tlbia_1 /* loop for all entries */ addik r12, r12, 1 - /* sync */ + mbar 1 /* sync */ rtsd r15, 8 nop .size _tlbia, . - _tlbia @@ -58,6 +58,7 @@ _tlbie: blti r12, _tlbie_1 /* Check if found */ mts rtlbhi, r0 /* flush: ensure V is clear */ nop + mbar 1 /* sync */ _tlbie_1: rtsd r15, 8 nop |