]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
MIPS: syscall: Emit Loongson3 sync workarounds within asm
authorPaul Burton <paul.burton@mips.com>
Tue, 1 Oct 2019 21:53:39 +0000 (21:53 +0000)
committerPaul Burton <paul.burton@mips.com>
Mon, 7 Oct 2019 16:43:05 +0000 (09:43 -0700)
commite84957e6ae043bb83ad6ae7e949a1ce97b6bbfef
tree362a1ddeb8bf9224c737e9c5f21284595a9abaf8
parent3c1d3f0979721a39dd2980c97466127ce65aa130
MIPS: syscall: Emit Loongson3 sync workarounds within asm

Generate the sync instructions required to workaround Loongson3 LL/SC
errata within inline asm blocks, which feels a little safer than doing
it from C where strictly speaking the compiler would be well within its
rights to insert a memory access between the separate asm statements we
previously had, containing sync & ll instructions respectively.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
Cc: Huacai Chen <chenhc@lemote.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: linux-kernel@vger.kernel.org
arch/mips/kernel/syscall.c