From: Kyle McMartin Date: Tue, 15 Apr 2008 22:36:38 +0000 (-0400) Subject: [PARISC] fix signal trampoline cache flushing X-Git-Tag: firefly_0821_release~21665 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cf39cc3b56bc4a562db6242d3069f65034ec7549;p=firefly-linux-kernel-4.4.55.git [PARISC] fix signal trampoline cache flushing The signal trampolines were accidently flushing the kernel I$ instead of the users. Fix that up, and also add a missing user D$ flush while we're at it. Signed-off-by: Kyle McMartin Signed-off-by: Linus Torvalds --- diff --git a/arch/parisc/kernel/signal.c b/arch/parisc/kernel/signal.c index 58fccc96d003..06213d1d6d95 100644 --- a/arch/parisc/kernel/signal.c +++ b/arch/parisc/kernel/signal.c @@ -534,7 +534,8 @@ insert_restart_trampoline(struct pt_regs *regs) * Flushing one cacheline is cheap. * "sync" on bigger (> 4 way) boxes is not. */ - flush_icache_range(regs->gr[30], regs->gr[30] + 4); + flush_user_dcache_range(regs->gr[30], regs->gr[30] + 4); + flush_user_icache_range(regs->gr[30], regs->gr[30] + 4); regs->gr[31] = regs->gr[30] + 8; /* Preserve original r28. */