mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 01:43:18 +00:00
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 <[email protected]>
Fixes: c6d96328fe ("parisc: Add cacheflush() syscall")
Cc: <[email protected]> # v6.5+
Signed-off-by: Helge Deller <[email protected]>