]> git.ipfire.org Git - thirdparty/linux.git/commit
parisc: Flush correct cache in cacheflush() syscall
authorHelge Deller <deller@gmx.de>
Mon, 9 Mar 2026 14:16:37 +0000 (15:16 +0100)
committerHelge Deller <deller@gmx.de>
Sun, 15 Mar 2026 08:28:49 +0000 (09:28 +0100)
commit2c98a8fbd6aa647414c6248dacf254ebe91c79ad
treef1f22cdf86f6de71887cd8aafe60f4a6896cfd22
parent1f318b96cc84d7c2ab792fcc0bfd42a7ca890681
parisc: Flush correct cache in cacheflush() syscall

The assembly flush instructions were swapped for I- and D-cache flags:

SYSCALL_DEFINE3(cacheflush, ...)
{
if (cache & DCACHE) {
"fic ...\n"
}
if (cache & ICACHE && error == 0) {
"fdc ...\n"
}

Fix it by using fdc for DCACHE, and fic for ICACHE flushing.

Reported-by: Felix Lechner <felix.lechner@lease-up.com>
Fixes: c6d96328fecd ("parisc: Add cacheflush() syscall")
Cc: <stable@vger.kernel.org> # v6.5+
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/cache.c