parisc: Add memory clobber to TLB purges
authorJohn David Anglin <dave.anglin@bell.net>
Sun, 21 Apr 2019 23:47:17 +0000 (19:47 -0400)
committerHelge Deller <deller@gmx.de>
Fri, 3 May 2019 21:47:40 +0000 (23:47 +0200)
commit44224bdb99150ad17cf394973b25736cb92c246a
tree68f2e534928afaa3ca2ca42943bf00e24fbe9ac5
parent9e5c602186a692a7e848c0da17aed40f49d30519
parisc: Add memory clobber to TLB purges

The pdtlb and pitlb instructions are strongly ordered. The asms invoking
these instructions should be compiler memory barriers to ensure the
compiler doesn't reorder memory operations around these instructions.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
CC: stable@vger.kernel.org # v4.20+
Fixes: 3847dab77421 ("parisc: Add alternative coding infrastructure")
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/include/asm/cache.h